Comments (5)
Hi Grace,
Can you share the commands you used to run ragtag? It would be strange to go from 125 to 12 contigs during correction. Correction should yield at least as many contigs than the input, since correction is just the breaking of input contigs. If the flye assembly was used as the query and the unicycle assembly used as the reference, that would make more sense. If that is the case, I can give you some suggestions.
Thanks,
Mike
from ragtag.
HI Mike,
I used placed minimap2 in my path then
python3 ragtag.py correct flye.fasta unicyc.fasta
and
python3 ragtag.py scaffold flye.fasta ragtag_output/unicyc.assembly.corrected.fasta
.
from ragtag.
Hi Grace,
Thanks for sharing your data. The unicycler assembly you provided actually only had 75 contigs, and after running ragtag on my end, Bif1.unicyc.corrected.fasta
had 76 contigs, indicating that a single contig ("3") was broken one time during correction.
It appears that scaffolding also generated 76 contigs and that is beacuse two of the 76 corrrespond exactly to the two flye contigs.
Unicycler contig "1" corresponds to flye "contig_1" and Unicycler contig "2" corresponds to flye "contig_2". The flye assembly is 5676900 bp
long and if you look at ragtag.scaffolds.stats
you can see that the two placed contigs yield 5652627 bp
of placed sequence, so that looks good to me.
I am not sure why we are getting different results. Can you confirm that your query assembly has 75 contigs rather than 125?
Thanks
from ragtag.
Ok, I switched the flye and unicyc... my bad.
Now, I see that there are 75 contigs in my unicyc.fasta.
I still have the idea that the assembly did not work because the output said there are 2 ragtag and a bunch of other numbers. But the stats say there are 0 misplaced sequences. Thanks for your help.
contig_1_RagTag
contig_2_RagTag
10
11
12
13
14
15
16
17
18
19
20
21
22
from ragtag.
Hi there,
Here is what my stats file looks like:
placed_sequences placed_bp unplaced_sequences unplaced_bp gap_bp gap_sequences
2 5652627 74 286548 0 0
So this says that 286548/(286548+5652627) = 4.8%
of sequence is unplaced, which is usually pretty good. If you are curious about why those other contigs were not placed, you can look at the intermediate query_against_ref.paf
file to see what the alignments for the unplaced contigs look like.
I will close this for now but feel free to reopen if anything comes up.
Thanks
from ragtag.
Related Issues (20)
- RagTAg correct: "no attribute 'get_reference_length'" HOT 1
- correct use by the species. HOT 1
- Unable to fill gap with ragtag scaffold and patch
- Stop without error message on "Reading whole genome alignments"
- updategff issues
- From delta file to agp and to fasta file of scaffolded assembly?
- `ragtag scaffold` without concatenation
- the result of ragtag.merge.fasta shows no improvement.
- Scaffolding inserts gaps that aren't covered by HiFi or ONT reads and aren't in reference HOT 7
- Can't use multiple threads via -t HOT 3
- Scaffold longer than reference genome due to NNNNs HOT 3
- pysam error
- Error when running RagTag patch command HOT 1
- patch output genome is identical to input target genome
- ERROR: encountered an invalid zero or negative numeric AGP field. HOT 1
- Ragtag Merge IndexError for -f AGP file
- Using RagTag to close the gaps in a chromosome or reference genome using long-read data
- The scaffold command was submitted and the assembled result was not available HOT 1
- output file not found
- ragtag_scaffold.py: error: unrecognized arguments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ragtag.