How to do variant calling on .sam and .bam files using 'bio-samtools'?
How to do variant calling on .sam files using 'bio-samtools'?
I have the code:
#!/usr/bin/ruby
require 'bio-samtools'
bam = Bio::DB::Sam.new(:bam=>"my_sorted.bam", :fasta=>'ref.fasta')
bam.open
What methods to call on bam object or what next steps to do? Thank you.
• 3,033 views
•
link
3 answers
Have you read the github page?
• 0 views
•
link
Looks like you'll want to call mpileup with the :g option. Documentation and code are here:
• 0 views
•
link
I've created ruby-htslib to make this sort of thing possible. It's not as well tested as the fine libraries in Python and other languages, so there may be some bugs left, but if you find a bug, I'll fix it.
• 0 views
•
link
Log in to answer this question.
why not using a simple shell script ?
Need all in one Ruby workflow, thank you for you replies