Skip to content
Open
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
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ nextflow
.nextflow
.nextflow.*
pipeline_trace*
nf_pipeline
work
nf_pipeline*
work
*.fa
*.gtf
7 changes: 7 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

./nextflow main.nf -profile test
rm -rf work
rm -rf nf_pipeline
rm .nextflow.log*
rm pipeline_trace.txt*
6 changes: 3 additions & 3 deletions conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ channels:
- conda-forge
dependencies:
# Default bismark
- salmon
- alevin-fry
- pyroe
- bioconda::salmon>=1.8.0
- bioconda::alevin-fry>=0.6.0
- bioconda::pyroe
- bedtools
Binary file added fastq.tar
Binary file not shown.
Binary file added genomic_data/fasta/genome.fa.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion input_files/pl_sheet_toy.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
reference link
chemistry link
v3 https://raw.githubusercontent.com/10XGenomics/cellranger/master/lib/python/cellranger/barcodes/3M-february-2018.txt.gz
2 changes: 1 addition & 1 deletion input_files/ref_sheet.tsv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
reference link
human2020A https://cf.10xgenomics.com/supp/cell-exp/refdata-gex-GRCh38-2020-A.tar.gz
mm10-2020A https://cf.10xgenomics.com/supp/cell-exp/refdata-gex-mm10-2020-A.tar.gz
mm10-2020A https://cf.10xgenomics.com/supp/cell-exp/refdata-gex-mm10-2020-A.tar.gz
4 changes: 2 additions & 2 deletions input_files/ref_sheet_toy.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
reference link
human-toy https://umd.box.com/shared/static/7v6mof9emgudmuczc4lnwz4oou7xayks.gz
reference ref_data fasta gtf
human-toy-download-ref randommeaninglessfillerstring genomic_data/fasta/genome.fa genomic_data/genes/genes.gtf
2 changes: 1 addition & 1 deletion input_files/sample_sheet_toy.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
chemistry reference dataset_name dataset_url fastq_url fastq_MD5sum delete_fastq feature_barcode_csv_url multiplexing_library_csv_url
v3 human-toy toy set from 200 Sorted Cells from Human Glioblastoma Multiforme, 3' LT v3.1 https://www.10xgenomics.com/resources/datasets/200-sorted-cells-from-human-glioblastoma-multiforme-3-lt-v-3-1-3-1-low-6-0-0 https://umd.box.com/shared/static/bauvay4eq0v8xmu9e0fp0me7zj1qojnr.tar 8db8f1f92f92de0295efc9bb602a8276 1
v3 human-toy-download-ref toy set from 200 Sorted Cells from Human Glioblastoma Multiforme, 3' LT v3.1 https://www.10xgenomics.com/resources/datasets/200-sorted-cells-from-human-glioblastoma-multiforme-3-lt-v-3-1-3-1-low-6-0-0 https://umd.box.com/shared/static/bauvay4eq0v8xmu9e0fp0me7zj1qojnr.tar 8db8f1f92f92de0295efc9bb602a8276 1
10 changes: 6 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ workflow {
// producing both the knee filtered and
// unfiltered output
preprocess()

// merge permit list
data = preprocess.out.chem_pl.cross(data)
.map(it -> tuple(it[1][1], // reference
Expand All @@ -39,7 +38,6 @@ workflow {
it[1][7], // feature_barcode_csv_url
it[1][8] // multiplexing_library_csv_url
))

// merge t2g and salmon index
data = preprocess.out.ref_t2g_index.cross(data)
.map(it -> tuple( it[1][1], // chemistry
Expand All @@ -55,7 +53,11 @@ workflow {
it[1][2], // pl_path
it[0][1] // t2g_path
))

salmon_map(data)
af(salmon_map.out, Channel.value("unfilt"))
if(!salmon_map.out[0].equals("v2") && !salmon_map.out[0].equals("v3")) {
af(salmon_map.out, Channel.value("unfilt"))
} else {
af(salmon_map.out, Channel.value("knee"))
}
af.out.view()
}
4 changes: 4 additions & 0 deletions modules/af.nf
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ workflow af {
| alevin_fry_collate \
| alevin_fry_quant \
| write_description

emit:
write_description.out

}


Loading