Skip to content

Commit

Permalink
osx
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 5, 2024
1 parent 4feee8a commit 40b5010
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ jobs:
- name: createEnvsOSX
run: |
micromamba activate snakePipes_CI
conda config --add subdirs osx-64
snakePipes createEnvs --autodetectCondaEnvDir --only ${{matrix.envs}}
1 change: 1 addition & 0 deletions snakePipes/common_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def set_env_yamls():
return {'CONDA_SHARED_ENV': 'envs/shared.yaml',
'CONDA_CREATE_INDEX_ENV': 'envs/createIndices.yaml',
'CONDA_RNASEQ_ENV': 'envs/rna_seq.yaml',
'CONDA_SALMON_ENV': 'envs/salmon.yaml',
'CONDA_SLEUTH_ENV': 'envs/sleuth.yaml',
'CONDA_RMATS_ENV': 'envs/rMats.yaml',
'CONDA_scRNASEQ_ENV': 'envs/sc_rna_seq.yaml',
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/shared/rules/Salmon.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ else:
gtf = genes_gtf,
lib_type = getSalmon_libtype(pairedEnd, libraryType)
threads: 8
conda: CONDA_RNASEQ_ENV
conda: CONDA_SALMON_ENV
shell: """
salmon quant -p {threads} --softclipOverhangs --validateMappings --numBootstraps 50 -i {params.index} -l {params.lib_type} -r {input.fastq} -o {params.outdir} 2> {log}
"""
Expand Down
4 changes: 2 additions & 2 deletions snakePipes/shared/rules/Salmon_allelic.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ samtools fastq -1 {output.r1} -2 {output.r2} -0 /dev/null -s /dev/null -n \\
gtf = genes_gtf,
lib_type = getSalmon_libtype(pairedEnd, libraryType)
threads: 8
conda: CONDA_RNASEQ_ENV
conda: CONDA_SALMON_ENV
shell: """
salmon quant -p {threads} --softclipOverhangs --validateMappings --numBootstraps 50 -i {params.index} -l {params.lib_type} -1 {input.r1} -2 {input.r2} -o {params.outdir} 2> {log}
"""
Expand Down Expand Up @@ -114,7 +114,7 @@ samtools fastq -1 /dev/null -2 /dev/null -0 /dev/null -s {output.r1} -n \\
gtf = genes_gtf,
lib_type = getSalmon_libtype(pairedEnd, libraryType)
threads: 8
conda: CONDA_RNASEQ_ENV
conda: CONDA_SALMON_ENV
shell: """
salmon quant -p {threads} --softclipOverhangs --validateMappings --numBootstraps 50 -i {params.index} -l {params.lib_type} -r {input.fastq} -o {params.outdir} 2> {log}
"""
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/shared/rules/createIndices.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ rule Salmon_index_joint_fa:
err = "SalmonIndex_RNAVelocity/logs/SalmonIndex.err",
out = "SalmonIndex_RNAVelocity/logs/SalmonIndex.out"
threads: lambda wildcards: 16 if 16<max_thread else max_thread
conda: CONDA_RNASEQ_ENV
conda: CONDA_SALMON_ENV
shell:"""
cat {input.joint_fasta} {input.genome_fasta} > {output.seq_fa}
salmon index -p {threads} -t {output.seq_fa} -d {input.decoys} -i SalmonIndex_RNAVelocity {params.salmonIndexOptions} > {log.out} 2> {log.err}
Expand Down
8 changes: 4 additions & 4 deletions snakePipes/shared/rules/envs/rna_seq.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: snakepipes_RNAseq_environment_2.0
name: snakepipes_RNAseq_environment_3.0
channels:
- conda-forge
- bioconda
Expand All @@ -9,8 +9,8 @@ dependencies:
- subread = 2.0.1
- hisat2 = 2.2.1
- star = 2.7.10b
- salmon = 1.10.1
- r-base = 4.1.3
# - salmon = 1.10.1
- r-base = 4.3.0
- r-wasabi
- r-dplyr
- r-ggplot2
Expand All @@ -20,7 +20,7 @@ dependencies:
- pandoc
- r-dt
- r-rcolorbrewer
- bioconductor-deseq2
- bioconductor-deseq2 = 1.42.0
- bioconductor-tximport
- r-knitcitations
- bioconductor-apeglm
Expand Down
6 changes: 6 additions & 0 deletions snakePipes/shared/rules/envs/salmon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: snakepipes_salmon_environment_1.0
channels:
- conda-forge
- bioconda
dependencies:
- salmon = 1.10.1
4 changes: 2 additions & 2 deletions snakePipes/shared/rules/scRNAseq_Alevin.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rule SalmonAlevin:
out = "Alevin/logs/alevin.{sample}.out",
err = "Alevin/logs/alevin.{sample}.err"
#Use RNAseq env because Salmon already installed there (no need for duplication).
conda: CONDA_RNASEQ_ENV
conda: CONDA_SALMON_ENV
threads: 8
shell:"""
salmon alevin -l {params.libtype} -1 {input.R1} -2 {input.R2} {params.protocol} -i {params.index} -p {threads} -o {params.outdir} --tgMap {input.tgMap} --dumpFeatures --dumpMtx --numCellBootstraps 100 > {log.out} 2> {log.err}
Expand Down Expand Up @@ -124,7 +124,7 @@ rule AlevinForVelocity:
out = "AlevinForVelocity/logs/alevin.{sample}.out",
err = "AlevinForVelocity/logs/alevin.{sample}.err"
#Use RNAseq env because Salmon already installed there (no need for duplication).
conda: CONDA_RNASEQ_ENV
conda: CONDA_SALMON_ENV
threads: 8
shell:"""
salmon alevin -l {params.libtype} -1 {input.R1} -2 {input.R2} {params.protocol} -i {params.velo_index} -p {threads} -o {params.outdir} --tgMap {params.tgMap} --dumpFeatures --dumpMtx --numCellBootstraps 100 > {log.out} 2> {log.err}
Expand Down

0 comments on commit 40b5010

Please sign in to comment.