adeschen / mpileuptools Goto Github PK
View Code? Open in Web Editor NEWThis python script parses a mpileup file to extract the coverage of each base at each position.
License: GNU General Public License v3.0
This python script parses a mpileup file to extract the coverage of each base at each position.
License: GNU General Public License v3.0
Thank you for creating this! Which samtools mpileup flags are expected for this tool?
It doesn't work on my pileup created from this command:
samtools mpileup -f test.fasta test.bam > pileup_test.tsv
My error:
[02/09 12:09:57] emmabishop@emmas-air:~/workspace/mpileupTools$ python2 parseMPileup.py -i ../pileup_test.tsv -p out_test
Input file is " ../pileup_test.tsv "
Output prefix file is " out_test "
Traceback (most recent call last):
File "parseMPileup.py", line 243, in <module>
parsePileup(inputFile, outputPrefix, separatedFiles)
File "parseMPileup.py", line 207, in parsePileup
lettersCount = extractCigarSeq(data[4], data[5], data[6], info);
IndexError: list index out of range
A snippet of my pileup:
[02/09 12:10:14] emmabishop@emmas-air:~/workspace/mpileupTools$ head ../pileup_test.tsv
1 1 T 0 * *
1 2 T 0 * *
1 3 G 2 ,, 20
1 4 A 2 ,, 0/
1 5 C 3 ,,, 223
1 6 C 2 ,, 12
1 7 G 3 ,,, 2/0
1 8 A 3 ,,^?. 223
1 9 T 4 ,,,. 12.3
1 10 G 2 ,. 32
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.