Git Product home page Git Product logo

mlell / tapas Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 9.62 MB

Evaluate the effectiveness of any short read mapper and its parameters using artificially generated reads. See the "releases" page for download: https://github.com/mlell/tapas/releases. The manual can be found at https://mlell.github.io/tapas.

License: MIT License

Shell 22.71% Python 57.13% CSS 0.78% HTML 0.36% R 18.59% Singularity 0.43%

tapas's People

Contributors

mlell avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

jlapaijmans

tapas's Issues

read simulation hangs with unwrapped fasta input file

When the input fasta file is not wrapped (ie 80 chars per line), the read simulation just hangs but doesn't give an error message..? Assuming this happens for everyone, not just me, would be good to include a quick fasta check and an exit with message if the fasta entry is not wrapped.

Solution: wrap your fasta input file using eg.
seqtk seq -l80 input.fasta

Bug in mapdamagegeomparam script: `AttributeError: 'DataFrame' object has no attribute 'ix'`

Bug

I was trying out tapas and came across the following bug, when running the following I would get the error:

❯ $TAPAS/mapdamagegeomparam --fit-plots fig/fit.png input/mapdamage/misincorporation.txt
Traceback (most recent call last):
  File "/raven/u/jfellowsy/bin/tapas-1.2/scripts/src/mapdamage2geomparam.py", line 436, in <module>
    if __name__=="__main__": main()
  File "/raven/u/jfellowsy/bin/tapas-1.2/scripts/src/mapdamage2geomparam.py", line 68, in main
    A = A.ix[A.Total != 0,:]
  File "/u/jfellowsy/conda-envs/tapas/lib/python3.9/site-packages/pandas/core/generic.py", line 5465, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'ix'

This is derived from this line:

A = A.ix[A.Total != 0,:]

Where the ix column doesn't exist in the input mapDamage2 misincorporation file.

Workaround

Delete the referred to line in the above script, that refers to ix (assuming your misincorporation file doesn't have any 0s).

I was then successfully able to get the script ot run prpoerly.

Read simulation and parameter testing for PE reads?

I ran through the tutorial and was able to process until the last performance metric step. However, I would like to tune parameters for PE data, not SE data. How could I generate a PE dataset?

Thank you.

Rcpp version pinned in r_deps list

In the r_deps list the version of Rcpp is pinned to 0.12.15. This prevents installation with "newer" versions of R (such as 3.5.3 :). I'm not too much into R but if I understood correctly one cannot arbitrarily mix Rcpp and R versions.

The following installation procedure worked for me (providing Rcpp via r-essentials):

git clone https://github.com/mlell/tapas tapas
cd tapas
module load Anaconda/3.7
conda create -n tapas -c bioconda -c r python=3.6 r=3.6 r-essentials
source activate tapas
nano scripts/gen/r_deps.txt  # remove the line containing Rcpp
scripts/gen/install_dependencies
pip install -r scripts/gen/py_requirements.txt --target scripts/lib/python-ext/
bash scripts/gen/gen-launchers.sh

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.