Skip to content

Commit

Permalink
add tip for github credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed Jun 24, 2024
1 parent 7ab4a34 commit d5d63ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Make sure the version is 0.1.3 with this command `packageVersion("bcbioR")` or r
* Activate your r session to make your working directory to be your project folder: `usethis::proj_activate("/path/to/analysis/folder")`
* Start a git repository: `usethis::use_git()`
* Only once every 30 days, set up your github credentials: `usethis::gh_token_help()`
* You may want to run this first to keep this token working in future sessions: `git config --global credential.helper store`
* Push repository to HBC github as private: `usethis::use_github(org="hbc",private=TRUE)`

## RNAseq
Expand All @@ -32,7 +33,7 @@ Make sure the version is 0.1.3 with this command `packageVersion("bcbioR")` or r
* Follow this instruction https://bcbio.github.io/bcbioR/#set-base-project to start you project
* Follow this instruction https://bcbio.github.io/bcbioR/#set-rnaseq-report-folder to start your RNAseq analysis

# BCBIOR Supported Templates
# bcbioR Supported Templates

We used `bcbioR` to deploy folders and code to our project directories to improve robustness in our analysis.

Expand Down
19 changes: 14 additions & 5 deletions docs/pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module load java/jdk-21.0.2
export NXF_APPTAINER_CACHEDIR=/n/app/singularity/containers/shared/bcbio/
export NXF_SINGULARITY_LIBRARYDIR=/n/app/singularity/containers/shared/bcbio/
./nextflow run nf-core/rnaseq -profile singularity,test --outdir here
./nextflow run nf-core/rnaseq -r 3.14.0 -profile singularity,test --outdir here -resume
```

## Nextflow in FAS
Expand All @@ -69,8 +69,14 @@ Example command to run in an interactive job:
/n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow run nf-core/rnaseq -profile test,singularity --outdir tmp -c /n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow/fas.config
```

For non-test data, this is the head job you need to submit:
For non-test data, this is the head job you need to submit. Copy first the config files and modified as needed:

```
cp /n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow/fas.config .
cp /n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow/rnaseq.config .
```

And then modify this template as needed before using it:

```
#!/bin/bash
Expand All @@ -92,7 +98,10 @@ export NXF_SINGULARITY_LIBRARYDIR=/n/holylfs05/LABS/hsph_bioinfo/Lab/shared_reso
OUTPUT=path_to_results
/n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow run nf-core/rnaseq -profile singularity \\
-c analysis.config \\
--outdir $OUTPUT -c /n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow/fas.config
/n/holylfs05/LABS/hsph_bioinfo/Lab/shared_resources/nextflow run nf-core/rnaseq -r 3.14.0 \
-profile singularity \
-c analysis.config \
-c rnaseq.config \
--outdir $OUTPUT -c fas.config \
-resume
```

0 comments on commit d5d63ea

Please sign in to comment.