GithubHelp home page GithubHelp logo

gauravcodepro / panache-extract Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50 KB

maf to panache and extracting all snps and pangenome specific information.

License: MIT License

Ruby 100.00%
pangenome pangenome-graph pangenome-extraction

panache-extract's Introduction

panache-extract

  • a maf conversion for the panache for the genome visualization.
  • given a alignment in the maf and the taf format, you can extract the specific sequences for the snps with the pangenomes using specific ids and also the sequences as strings.
  • it will also tell which snps variation is present so that it can be poulated on panache.
  • added support for the output file write to each and every function of the gem
  • This is now available as a ruby gem panacheextract
  • ruby bindings to the django is also available.
  • example MAF(602 bytes) example MAF format
##maf version=1 scoring=N/A

a
s       simDog.chr6     437451  11      +       593897  CCCGTCAGTGT
s       simHuman.chr6   446327  11      +       601863  TCCGCCAAGGT
s       simMouse.chr6   460751  11      +       636262  TTCATCAGAGT
s       simRat.chr6     470339  11      +       647215  TTCATTAGGGT

a
s       simCow.chr6     445326  8       +       602619  TTTTCCCA
s       simDog.chr6     437462  8       +       593897  TT-TTCCG
s       simHuman.chr6   446338  8       +       601863  TTCTTCCG
s       simMouse.chr6   460762  8       +       636262  TTTTACCG
s       simRat.chr6     470355  8       +       647215  TTTTACCG
  • extracts specific sequences from the pangenome graph
    getspecific("simDog.chr6","/home/gaurav/Desktop/maf_taf_panache/sample.taf",
                                      "/home/gaurav/Desktop/maf_taf_panache/sample.txt"
    
  • extract specific sequences from the alignments associated with the specific deletions
    # will only give the sequences of those which have deletions in the graphs. 
     getspecific("simDog.chr6", "/home/gaurav/Desktop/maf_taf_panache/sample.taf",
                          "/home/gaurav/Desktop/maf_taf_panache/sample.txt", del = "None")
          [["simDog.chr6", "CCCGTCAGTGT"], ["simDog.chr6", "TT-TTCCG"]]
     getspecific("simDog.chr6", "/home/gaurav/Desktop/maf_taf_panache/sample.taf",
                         "/home/gaurav/Desktop/maf_taf_panache/sample.txt", del != "None")
            [["simDog.chr6", "TT-TTCCG"]]
    
    
  • extract the position of deletion snps from the alignments. will only report the coordinates of those ids if they have deletions.
    delcoordinates("simDog.chr6", "/home/gaurav/Desktop/maf_taf_panache/sample.taf",
                                           "/home/gaurav/Desktop/maf_taf_panache/sample.txt")
    
  • search according to the sequence ids or according to the column values.
    # usage as above, added support for writing the output files to the disk for every function.
      getAll(ids, inputalignment, outalignment, del, writefilter)
    

Gaurav
Academic Staff Member
Bioinformatics
Institute for Biochemistry and Biology
University of Potsdam
Potsdam,Germany

panache-extract's People

Watchers

Gaurav avatar

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.