genedx / pgr-tk-notebooks Goto Github PK
View Code? Open in Web Editor NEWJupyter Notebooks Using PGR-TK for various human pangenome analysis tasks
License: Other
Jupyter Notebooks Using PGR-TK for various human pangenome analysis tasks
License: Other
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.