Skip to content
Snippets Groups Projects
Verified Commit 531b30b6 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

emase-zero: filter g2tr list from sequence name in the fasta

parent fdacd794
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ workflow count { ...@@ -18,7 +18,7 @@ workflow count {
g2tr(gtf) g2tr(gtf)
fasta_to_transcripts_lengths(fasta) fasta_to_transcripts_lengths(fasta)
bam2ec(bam_idx, fasta_to_transcripts_lengths.out.tsv) bam2ec(bam_idx, fasta_to_transcripts_lengths.out.tsv)
emase(bam2ec.out.bin, bam2ec.out.tsv, g2tr.out.g2t) emase(bam2ec.out.bin, fasta, bam2ec.out.tsv, g2tr.out.g2t)
emit: emit:
count = emase.out.count count = emase.out.count
...@@ -34,6 +34,7 @@ process emase { ...@@ -34,6 +34,7 @@ process emase {
input: input:
tuple val(file_id), path(bin) tuple val(file_id), path(bin)
tuple val(fasta_id), path(fasta)
tuple val(transcript_length_id), path(transcript_length) tuple val(transcript_length_id), path(transcript_length)
tuple val(gene_to_transcript_id), path(gene_to_transcript) tuple val(gene_to_transcript_id), path(gene_to_transcript)
...@@ -42,10 +43,12 @@ process emase { ...@@ -42,10 +43,12 @@ process emase {
script: script:
""" """
grep ">" ${fasta} | sed 's/>//' > tr_list.txt
grep -Fw -f tr_list ${gene_to_transcript} > gene_to_transcript.txt
emase-zero ${params.count} \ emase-zero ${params.count} \
-o ${bin.simpleName}.quantified \ -o ${bin.simpleName}.quantified \
-l ${transcript_length} \ -l ${transcript_length} \
-g ${gene_to_transcript} \ -g gene_to_transcript.txt \
${bin} ${bin}
""" """
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment