-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anvi-profile improvements #1362
Conversation
class fetches all its attributes from self.read to mimick the AlignedSegment class
messy, add test upon instantiation
successful; aligned_sequence matches with reference sequence
return a pysam.AlignmentFile object. No more get() method and no more run and progress attributes :(
except trims reads if they overhang the start and start
returns a pysam.AlignmentFile object
positions as additional data to ProcessAlleleCounts and it filters them alongside its normal operations
contig in one function call. For a contig of length 1M, this info is retreived in 0.03s, compared 4s if calling get_nt_info for each position
The above solves SNV calculations from the memory leak, but it does not save the SCVs routine since the routine calls other numba-ized functions. After digging in, I discovered that it was caused by a numba generators in utils, so I made this reproducible example in the numba repo: numba/numba#5350 For now, I will avoid the use of numba generators :\ |
write buffer size should depend on the number of threads, since typically if you have more threads you have more memory. I am noticing this because gc.collect() enables the GIL, which creates very large stalls when using mutliple threads in anvi-profile.
arguments to be passed to bamops.BAMFileObject
someone complains
@meren, I have reached the point where I am just adding emojis to the codebase (2d326b6). I think this means I have nothing more to do here. I'm not sure how much you have reviewed this branch, but at this point I'll wait for you to review as much as you can. If everything is good I want to merge tomorrow :S |
I say go for it and merge, Evan, and we all play with it for a while. |
completion_score if we want
This is a big change to anvi'o so I wanted to open up the pull request early to get critique from others early on throughtout the process.
As of this post, I am currently focused on developing tests that compare results to v6.1
Instructions to access the tests run below
Download and unzip this: testing.zip
Set your anvio repository to
a