Giter VIP home page Giter VIP logo

spliceplot's Introduction

SplicePlot

hive plot, structure plot, and sashmi plot drawing tool for alternative splicing visualization

Dependencies:

Python 2.7

pandas package available at http://pandas.pydata.org/

pysam package

matplotlib, scipy, and numpy

samtools must be installed and in your $PATH

tabix must be installed and in your $PATH

spliceplot's People

Contributors

wueric avatar

Stargazers

Chao Zheng avatar Manoj Kumar Valluru avatar Zepeng (Phoenix) Mu avatar Dipankar J Dutta avatar zhangzhanhui avatar Philippe Lin avatar Thiago Britto Borges avatar Paul Donovan avatar  avatar  avatar Jose Luis Maturana avatar siyu Xia avatar  avatar Avinash R avatar Dylan Bethune-Waddell avatar  avatar Wang Lei avatar

Watchers

 avatar  avatar Dylan Bethune-Waddell avatar

spliceplot's Issues

initialize_data.py program failed

Hi,

The initialize_data.py program is failing like this:

$ python /mnt/isilon/cbmi/variome/bin/SplicePlot-1.1/initialize_data.py 5:36953863 5:36877280-36953720,5:36877280-36955574 \
> --vcf CDL-217-05P-gatk-haplotype-annotated.vcf.gz \
> --gtf ref-transcripts_exons_sorted.gtf.gz \
> --mf map_file.txt \
> --output CDL-217-05P.p
Failed

I am not sure why it is failing because there is no error message. How do I debug this?

Broken example due to pandas backwards incompatibility

Hello!
The example files provided with SplicePlot do not work any longer with the latest dependencies.
The error is:

jens@KI-V0205:~/spliceplot$ spliceplot.py --output test test_files/test.p pickle settings_file 
Reading settings from settings_file...
Parsing settings for hive plot...
Parsing settings for structure plot...
Parsing sashimi plot settings...
Done reading settings.
Traceback (most recent call last):
  File "/mnt/software/x86_64/packages/spliceplot/1.1/spliceplot.py", line 115, in <module>
    data_frame = pickle.load(pickle_file)
TypeError: ('_reconstruct: First argument must be a sub-type of ndarray', <built-in function _reconstruct>, (<class 'pandas.indexes.base.Index'>, (0,), 'b'))

The issue arises because of a backwards incompatibility of pandas:
http://stackoverflow.com/questions/27950991/pandas-backwards-compatibility-issue-with-pickle-0-14-1-and-0-15-2

Since the new pd.read_pickle takes the filename as string it's now impossible to recover the panda data frames that are in the example files without installing an older version of pandas.
A possible solution is to fix the pickle file to contain only one pickle object, e.g. as a list (in initialize_data.py):

pickle_file = open('{0}{1}'.format(stem,tail),'wb')
pickle_list = [args.varpos, args.junc, genotype_averages_dict, mRNA_info_object, data_frame, filtered_genotypes_list]
pickle.dump(pickle_list,pickle_file)
pickle_file.close()

or to have the pickles in independent files. Can you provide me with either of the solutions?

Best,
Jens

junction_from_window.py prgram is not working

I am using this command
python //SplicePlot/junction_from_window.py chr4:170314426-chr4-170533780 /mnt/NGS/RNAseq_Data/Spliceplot_output/map_file.txt

and my map file is having path of the bam files
//NM1.bam
//AF2.bam

but no table file is getting generated, error is coming
File "/mnt/NGS/RNAseq_Data/SplicePlot/junction_from_window.py", line 8, in get_bam_locations
bam_path = line.strip('\n').split()[1]
IndexError: list index out of range

not getting the error, I have the *.bam.bai in both the path.

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.