Code Monkey home page Code Monkey logo

antcaller's Introduction

AntCaller

SNP calling and genotyping for damaged ancient DNA

Dependency

  1. Python 2.7
  2. samtools

Usage

  1. This program is built on Python2.7 and can only be used for SAM/BAM files with MD field under Linux system.
  2. Copy three .py files to the directory where SAM/BAM files are stored.
  3. Print "python AntCaller-1.1.py -help" for detailed usage information.
  4. SNP calling can only be performed after extracting damage information and pileuping reads.

Option

  1. Default length of the longest reads in BAM file is set to 300. If there are reads that are longer than 300, "-l" option should be used in extracting damage information. For example, you can use "samtools view -h example.bam | python AntCaller-1.1.py --extract -l 600 -o example", if the longest reads are longer than 300bp but shorter than 600bp.

Examples

  1. for BAM file (Require SAMtools installed)
  1. pileup reads, output example.AntCaller.pileup

samtools view -h example.bam | python AntCaller-1.1.py --pileup -o example

  1. extract damage information, output example.damageinfo

samtools view -h example.bam | python AntCaller-1.1.py --extract -o example

  1. SNP calling, output vcf file

python AntCaller-1.1.py --snpcalling -o example -d example.damageinfo -f example.AntCaller.pileup

  1. for SAM file
  1. pileup reads, output example.AntCaller.pileup

cat example.sam | python AntCaller-1.1.py --pileup -o example

  1. extract damage information, output example.damageinfo

cat example.sam | python AntCaller-1.1.py --extract -o example

  1. SNP calling, output vcf file

python AntCaller-1.1.py --snpcalling -o example -d example.damageinfo -f example.AntCaller.pileup

Contact

For any problems, please contact [email protected]

antcaller's People

Contributors

boyanzhou avatar

Stargazers

 avatar Geng Lee avatar  avatar Begoniamatters avatar  avatar Tomasz Suchan avatar

Watchers

James Cloos avatar  avatar

antcaller's Issues

Error creating pileup

I am running into issues creating a pileup from my bam file:

% samtools view -h my.bam | python AntCaller-1.1.py --pileup -o out

Traceback (most recent call last):
  File "AntCaller-1.1.py", line 70, in <module>
    temp_list.reverse()
AttributeError: 'range' object has no attribute 'reverse'

Thank you,
Y

SNP calling error

Traceback (most recent call last):
File "AntCaller_snpcalling.py", line 56, in
f1 = open(f1name, 'r')
IOError: [Errno 2] No such file or directory: '/data/analyses/paleogenomics/ancientprojects/4_antcaller/3.snp_calling/575_samples.temporary.pileup.3'
Traceback (most recent call last):
File "AntCaller_snpcalling.py", line 56, in
Traceback (most recent call last):
File "AntCaller_snpcalling.py", line 56, in
f1 = open(f1name, 'r')
IOError: [Errno 2] No such file or directory: '/data/analyses/paleogenomics/ancientprojects/4_antcaller/3.snp_calling/575_samples.temporary.pileup.4'
f1 = open(f1name, 'r')
IOError: [Errno 2] No such file or directory: '/data/analyses/paleogenomics/ancientprojects/4_antcaller/3.snp_calling/575_samples.temporary.pileup.2'
Traceback (most recent call last):
File "AntCaller_snpcalling.py", line 56, in
f1 = open(f1name, 'r')
IOError: [Errno 2] No such file or directory: '/data/analyses/paleogenomics/ancientprojects/4_antcaller/3.snp_calling/575_samples.temporary.pileup.5'
Traceback (most recent call last):
File "AntCaller-1.1.py", line 289, in
f2split = open(f2splitname, 'r')
IOError: [Errno 2] No such file or directory: '/data/analyses/paleogenomics/ancientprojects/4_antcaller/3.snp_calling/575_samples.vcf'

my command is : python AntCaller-1.1.py -o 575_samples --snpcalling -f 575_samples.AntCaller.pileup -d 575_samples.damageinfo

i don't understand why is the command trying to read the temporary pileup files? Aren't all of them were removed when the final pileup was generated?

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.