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

Added hisat2 component #213

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Added hisat2 component #213

wants to merge 3 commits into from

Conversation

PhilPalmer
Copy link
Collaborator

@PhilPalmer PhilPalmer commented Jul 25, 2019

This change is Reviewable

@codecov-io
Copy link

codecov-io commented Jul 25, 2019

Codecov Report

Merging #213 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
+ Coverage   41.95%   42.03%   +0.07%     
==========================================
  Files          72       72              
  Lines        6461     6469       +8     
==========================================
+ Hits         2711     2719       +8     
  Misses       3750     3750
Impacted Files Coverage Δ
flowcraft/generator/components/mapping.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6c6a3c...7392efd. Read the comment docs.


"""
samtools view -Sb $sam > ${sample_id}.bam
samtools sort -T ${sample_id}.bam.tmp ${sample_id}.bam -o ${sample_id}.sorted.bam
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can improve I/O here by piping some of these commands: https://github.com/assemblerflow/flowcraft/blob/master/flowcraft/generator/templates/mapping_patlas.nf#L40 (example).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally, in your class you have defined the output as bam, not as bam, bai. This makes this component theoretically compatible with modules that receive bam files (retrieve_mapped, for example) but in fact they're not being compatible. Why don't you pass the .bai file as a side channel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants