Git Product home page Git Product logo

pgr-tk-notebooks's People

Contributors

cschin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pgr-tk-notebooks's Issues

Cannot get ROI_seq

Hi, @cschin

I am following the pgrtk-notebook to build Arabidopsis pangenome. But the code have throw an error:

thread '<unnamed>' panicked at 'assertion failed: self.ctg_lens.contains_key(&key)', pgr-db/src/agc_io.rs:111:9
---------------------------------------------------------------------------
PanicException                            Traceback (most recent call last)
Cell In[15], line 5
      3 padding = 10000
      4 ROI_len = ROI_b - ROI_e
----> 5 ROI_seq = sdb.get_sub_seq(ref_file_name, ROI_chr, ROI_b-padding, ROI_e+padding)

PanicException: assertion failed: self.ctg_lens.contains_key(&key)

Here is the code I used.

agc create -i fn.txt -t 12 TAIR10_chr.fa > Atha_pan.agc
echo "Atha_pan.agc" > input.fn
pgr-mdb input.fn Atha_pan.agc
import pgrtk

# lazy load an agc file of the reference without any SHIMMER index
ref_db =pgrtk.AGCFile("Atha_pan.agc")
sdb = pgrtk.SeqIndexDB()
sdb.load_from_agc_index("Atha_pan")

ref_file_name, ROI_chr, ROI_b, ROI_e = 'TAIR10_chr.fa', 'TAIR10_Chr3', 16000000,16400000
padding = 10000
ROI_len = ROI_b - ROI_e
ROI_seq = sdb.get_sub_seq(ref_file_name, ROI_chr, ROI_b-padding, ROI_e+padding)

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.