-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #448 from toriapetrova/main
- Loading branch information
Showing
22 changed files
with
374 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: docs | ||
title: Working with branches | ||
date: 2024-08-17 | ||
author: | ||
- name: Viktoria Petrova | ||
github: toriapetrova | ||
add toc: true | ||
add support: true | ||
add sidebar: _sidebars/mainSidebar.md | ||
--- | ||
|
||
|
||
<!-- TODO article about licensing --> | ||
|
||
## ARC branches | ||
|
||
Branches in Git allow users to work on and develop new features of their projects without affecting or changing other branches in the repository. If you want to know more about branches check out the [Version control & Git](./../fundamentals/VersionControlGit.html) article. | ||
|
||
In the example below, you can see how branches have been used to work on developing an ARC in parallel. The ARC is created within the "main" branch and some metadata and microscopy images are uploaded. A new branch called "plant material" is generated to describe the process of growing the plants, later used in the experimental assays, in a study. Moreover, another branch named "RNA-seq" deals with the description of the actual sequencing assay and the data generated from it. After completion, branches are merged into "main". | ||
|
||
:warning: Don't forget to sync your branch with the "parent" branch to avoid merging conflicts. | ||
|
||
<img src="./../img/git-branches.drawio.svg" style="width:100%;display: block;margin: auto; padding: 30px 0px;"> | ||
|
||
## ARCitect | ||
|
||
In ARCitect you can create a new branch or switch to already existing ones by navigating to "Commit" on the left sidebar (1), then clicking on the dropdown menu (2) and selecting "Add Branch" (3) or the name of an already existing branch respectively (4). | ||
|
||
<img src="./../img/ARCitect_branches.drawio.svg" style="width:100%;display: block;margin: auto; padding: 30px 0px;"> | ||
|
||
## ARC Commander | ||
|
||
You can work on your ARC locally and once you are done you can commit your changes to a different branch. | ||
|
||
```bash | ||
arc sync -b SecondBranchName | ||
``` | ||
This will create a commit with your newest changes and push the commit to a new branch with the given name. When you finished editing your ARC, you can merge your progress into the main branch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: docs | ||
title: Adding a LICENSE to your ARC | ||
date: 2024-08-16 | ||
author: | ||
- name: Viktoria Petrova | ||
github: toriapetrova | ||
add toc: true | ||
add support: true | ||
add sidebar: _sidebars/mainSidebar.md | ||
--- | ||
|
||
## Why is a LICENSE important? | ||
|
||
Licenses in are essential for defining how others can use, modify, and distribute the code or data within a project. When you create and share an ARC, a license provides the formal framework that protects the data creators’ rights while clarifying the terms of use for the content. For example, some licenses allow free use and modification with few restrictions (like MIT or Apache 2.0), while others may require derivative works to also be open source (such as the GPL). Therefore, a license is crucial for fostering collaboration while ensuring legal protection and clarity for both creators and users. | ||
|
||
## Adding a LICENSE to your ARC | ||
|
||
In the DataHUB, a license is essentially just a standardized text file. | ||
To add a `LICENSE` to your ARC | ||
|
||
1. navigate to your ARC in the DataHUB, | ||
2. click on "Add LICENSE" on the right sidebar menu(1), | ||
3. use a provided license template or enter the license text. | ||
|
||
<img src="./../img/datahub-add-license.drawio.svg" style="width:100%;display: block;margin: auto; padding: 30px 0px;"> | ||
|
||
:bulb: We recommend to use a CC-BY license, which is not offered as a template by DataHUB. For a CC-BY 4.0 license, you can copy the legal code from https://creativecommons.org/licenses/by/4.0/legalcode.txt. | ||
|
||
:bulb: Remember to sync your local ARC (via ARC Commander or ARCitect) after creating a `LICENSE` file in the DataHUB. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/docs/img/ARCitect-download-lfs-from-directory.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.