Skip to content

Commit

Permalink
Merge pull request #307 from AlexsLemonade/sjspielman/cut-feature-sal…
Browse files Browse the repository at this point in the history
…mon-index

Cut feature barcode file for salmon indexing
  • Loading branch information
sjspielman authored May 5, 2023
2 parents 97c3035 + 8c3f516 commit a6b87e4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions external-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ nextflow run AlexsLemonade/scpca-nf \
```

Where `<path to config file>` is the **relative** path to the [configuration file](#configuration-files) that you have setup and `<name of profile>` is the name of the profile that you chose when [creating a profile](#setting-up-a-profile-in-the-configuration-file).
This command will pull the `scpca-nf` workflow directly from Github, using the `v0.4.1` version, and run it based on the settings in the configuration file that you have defined.
This command will pull the `scpca-nf` workflow directly from Github, using the `v0.4.2` version, and run it based on the settings in the configuration file that you have defined.

**Note:** `scpca-nf` is under active development.
Using the above command will run the workflow from the `main` branch of the workflow repository.
Expand All @@ -74,7 +74,7 @@ Released versions can be found on the [`scpca-nf` repo releases page](https://gi

```sh
nextflow run AlexsLemonade/scpca-nf \
-r v0.4.1 \
-r v0.4.2 \
-config <path to config file> \
-profile <name of profile>
```
Expand Down Expand Up @@ -265,7 +265,7 @@ If you will be analyzing spatial expression data, you will also need the Cell Ra

If your compute nodes do not have internet access, you will likely have to pre-pull the required container images as well.
When doing this, it is important to be sure that you also specify the revision (version tag) of the `scpca-nf` workflow that you are using.
For example, if you would run `nextflow run AlexsLemonade/scpca-nf -r v0.4.1`, then you will want to set `-r v0.4.1` for `get_refs.py` as well to be sure you have the correct containers.
For example, if you would run `nextflow run AlexsLemonade/scpca-nf -r v0.4.2`, then you will want to set `-r v0.4.2` for `get_refs.py` as well to be sure you have the correct containers.
Be default, `get_refs.py` will download files and images associated with the latest release.

If your system uses Docker, you can add the `--docker` flag:
Expand Down
2 changes: 1 addition & 1 deletion internal-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ nextflow run AlexsLemonade/scpca-nf -profile ccdl,batch
When running the workflow for a project or group of samples that is ready to be released on ScPCA portal, please use the tag for the latest release:

```
nextflow run AlexsLemonade/scpca-nf -r v0.4.1 -profile ccdl,batch --project SCPCP000000
nextflow run AlexsLemonade/scpca-nf -r v0.4.2 -profile ccdl,batch --project SCPCP000000
```

### Processing example data
Expand Down
5 changes: 4 additions & 1 deletion modules/af-features.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ process index_feature{
tuple val(id), path("feature_index")
script:
"""
# ensure salmon only gets the first 2 columns here
cut -f 1,2 ${feature_file} > feature_barcodes.txt
salmon index \
-t ${feature_file} \
-t feature_barcodes.txt \
-i feature_index \
--features \
-k 7
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ manifest{
homePage = 'https://github.com/AlexsLemonade/scpca-nf'
mainScript = 'main.nf'
defaultBranch = 'main'
version = 'v0.4.1'
version = 'v0.4.2'
}

// global parameters for workflows
Expand Down

0 comments on commit a6b87e4

Please sign in to comment.