Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small refactor + adding intervals #34

Merged
merged 6 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions assets/genomes/test/pipelines/default_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- genome: "GRCh38_chr21"
bed_intervals: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/GRCh38_chr21.bed"
fasta: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/GRCh38_chr21.fa"
fasta_dict: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/GRCh38_chr21.dict"
fasta_fai: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/GRCh38_chr21.fa.fai"
fasta_sizes: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/GRCh38_chr21.fa.sizes"
gff: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/genes_chr21.gff"
gtf: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/genes_chr21.gtf"
mito_name: "MT"
readme: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/README.md"
source: "nf-core/references"
species: "Homo_sapiens"
splice_sites: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/genes_chr21.splice_sites.txt"
transcript_fasta: "https://raw.githubusercontent.com/nf-core/test-datasets/references/references/GRCh38_chr21/genome.transcripts.fa"
# macs_gsize: "1.2e7"
5 changes: 5 additions & 0 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"errorMessage": "Species of the reference",
"meta": ["species"]
},
"bed_intervals": {
"type": "string",
"pattern": "^\\S+\\.bed$",
"errorMessage": "TODO"
maxulysse marked this conversation as resolved.
Show resolved Hide resolved
},
"fasta": {
"type": "string",
"pattern": "^\\S+\\.f(ast|n)?a(\\.gz)?$",
Expand Down
5 changes: 5 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ process {
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]

withName: 'BUILD_INTERVALS' {
ext.args = { "-v FS='\t' -v OFS='\t' '{ print \$1, \"0\", \$2 }'" }
ext.suffix = { "bed" }
}

withName: 'GFFREAD' {
ext.args = '--keep-exon-attrs -F -T'
}
Expand Down
26 changes: 25 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ workflow {
)

// WORKFLOW: Run main workflow
if (!params.tools) {
log.error("No tools specified")
error("EXIT: No tools specified")
}

NFCORE_REFERENCES(PIPELINE_INITIALISATION.out.samplesheet, params.tools)

ch_multiqc_files = Channel.empty()
Expand Down Expand Up @@ -104,5 +109,24 @@ workflow NFCORE_REFERENCES {
REFERENCES(input, tools)

emit:
versions = REFERENCES.out.versions
bowtie1 = REFERENCES.out.bowtie1
bowtie2 = REFERENCES.out.bowtie2
bwamem1 = REFERENCES.out.bwamem1
bwamem2 = REFERENCES.out.bwamem2
dict = REFERENCES.out.dict
dragmap = REFERENCES.out.dragmap
faidx = REFERENCES.out.faidx
fasta = REFERENCES.out.fasta
gffread = REFERENCES.out.gffread
hisat2 = REFERENCES.out.hisat2
hisat2_splice_sites = REFERENCES.out.hisat2_splice_sites
intervals = REFERENCES.out.intervals
kallisto = REFERENCES.out.kallisto
msisensorpro = REFERENCES.out.msisensorpro
rsem = REFERENCES.out.rsem
rsem_transcript_fasta = REFERENCES.out.rsem_transcript_fasta
salmon = REFERENCES.out.salmon
sizes = REFERENCES.out.sizes
star = REFERENCES.out.star
versions = REFERENCES.out.versions
}
5 changes: 5 additions & 0 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"git_sha": "1999eff2c530b2b185a25cc42117a1686f09b685",
"installed_by": ["modules"]
},
"gawk": {
"branch": "master",
"git_sha": "97321eded31a12598837a476d3615300af413bb7",
"installed_by": ["modules"]
},
"gffread": {
"branch": "master",
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/gawk/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions modules/nf-core/gawk/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions modules/nf-core/gawk/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 104 additions & 0 deletions modules/nf-core/gawk/tests/main.nf.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading