GithubHelp home page GithubHelp logo

adeschen / mpileuptools Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 33 KB

This python script parses a mpileup file to extract the coverage of each base at each position.

License: GNU General Public License v3.0

Python 100.00%
bioinformatics bioinformatics-scripts coverage mpileup parser position python27

mpileuptools's People

Contributors

adeschen avatar

Watchers

 avatar  avatar

Forkers

guoyuh zorg-it

mpileuptools's Issues

Please specify samtools mpilleup flags to use

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.