irep

scripts for estimating bacteria replication rates based on population genome copy number variation

https://github.com/christophertbrown/irep

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    4 of 9 committers (44.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.4%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

scripts for estimating bacteria replication rates based on population genome copy number variation

Basic Info
  • Host: GitHub
  • Owner: christophertbrown
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 46.5 MB
Statistics
  • Stars: 73
  • Watchers: 7
  • Forks: 11
  • Open Issues: 19
  • Releases: 0
Created about 10 years ago · Last pushed over 6 years ago
Metadata Files
Readme License

README.md

iRep

iRep is a method for determining replication rates for bacteria from single time point metagenomics sequencing and draft-quality genomes.

The method is described in:

"Measurement of bacterial replication rates in microbial communities" - Christopher T. Brown, Matthew R. Olm, Brian C. Thomas, Jillian F. Banfield (Nature Biotechnology 2016).

Installation:

pip install iRep

Note: iRep requires python 3. For full list of dependencies please see requirements.txt.

Scripts:

iRep -> measure replication rates using draft-quality genome sequences

iRep_filter.py -> combine and/or filter iRep output

bPTR -> measure replication rates using complete genome sequences (modified from Korem et al. Science 2015)

gc_skew.py -> calculate GC skew across complete genome sequences

Example usage:

iRep

$ iRep -f sample_data/l_gasseri.fna -s sample_data/l_gasseri*sam -o test.iRep

NOTE: To save time when analyzing mappings to several genomes, iRep can be run by listing multiple FASTAs as input.

$ iRep -f genome1.fna genome2.fna -s sample_data/l_gasseri*sam -o test.iRep OR $ iRep -f *.fna -s sample_data/l_gasseri*sam -o test.iRep

bPTR

$ bPTR -f sample_data/l_gasseri.fna -s sample_data/l_gasseri*sam -o test.bPTR.tsv -plot test.bPTR.pdf -m coverage

GC Skew

$ gc_skew.py -f sample_data/l_gasseri.fna

Example output is provided in sample_output.

Usage notes:

Running iRep and bPTR requires that you have genome sequences for each of the organisms for which you want to measure replication rates. Each program takes the file paths to each of the genomes, in separate FASTA files, as input. bPTR requires complete (closed) genome sequences, and iRep requires high-quality draft genomes (>=75% complete, <=175 fragments/Mbp sequence, and <=2% contamination). iRep will only make use of scaffolds ≥5 Kbp in length, thus it is important to make sure that estimates of genome completion are calculated based on scaffolds that pass this threshold. Both methods are most accurate when the genomes have been assembled from metagenomes from the samples being studied, or if it is known that an organism is present in the system with a highly similar genome sequence. The second set of inputs are mapping files in SAM format, which should be generated by mapping DNA sequencing reads against assembled genomes using Bowtie2. In this case, provide the path to each SAM file generated for each sample.

Only iRep values passing all genome and mapping quality requirements should be considered as valid. Default thresholds: min cov. = 5, min wins. = 0.98, min r^2 = 0.9, max fragments/Mbp = 175, GC correction min r^2 = 0.0.

Please note that high levels of strain variation will confound results.

iRep and bPTR.py output both a table (.tsv file) of results and a PDF with plots showing genome coverage measurements used for calculating replicaiton rates.

Large SAM files with many unmapped reads will be slower to parse than SAM files that do not included unmapped reads. Unmapped reads can be quickly filtered out of the SAM file using shrinksam.

Users have reported receiving a "ImportError: No module named '_tkinter'" error. This can be fixed by modifying the bash MPLBACKEND variable: export MPLBACKEND="agg".

IMPORTANT:

Both iRep and bPTR require ordered SAM files that can be generated using the Bowtie2 --reorder flag. Ordered SAM files, where both reads representing a set of paired reads are ordered one after the other, are requred for these scripts to filter reads based on mapping quality (see -mm option). If the SAM file is not sorted, be sure to either re-run Bowtie with the --reorder flag, or use the --sort option to sort the SAM file; otherwise, the scripts will make incorrect choices about which mapped reads to include when calculating coverage. The --sort option uses Unix sort to re-order the SAM file. This only applies when using a mapping quality cutoff; however, using a quality cutoff is recommend as it helps to prevent off-target read mapping.

Additional information:

See iRepValues.pdf for more information on interpreting iRep results.

Owner

  • Login: christophertbrown
  • Kind: user

GitHub Events

Total
  • Watch event: 3
  • Fork event: 2
Last Year
  • Watch event: 3
  • Fork event: 2

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 54
  • Total Committers: 9
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.407
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Chris Brown c****b@c****l 32
Chris Brown c****b@c****u 9
Chris Brown c****b@c****u 4
Chris Brown c****b@a****u 2
Matt Olm m****m@M****l 2
Chris Brown c****b@c****l 2
Bela Hausmann p****t@b****e 1
Shinya SUZUKI s****a@b****p 1
christophertbrown c****n 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 39
  • Total pull requests: 5
  • Average time to close issues: 2 months
  • Average time to close pull requests: 5 months
  • Total issue authors: 35
  • Total pull request authors: 3
  • Average comments per issue: 2.21
  • Average comments per pull request: 0.4
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mariaelf97 (2)
  • Anqi-Dai (2)
  • wrshoemaker (2)
  • nr0cinu (2)
  • BJCampbelllab (1)
  • stefcamp (1)
  • Anto007 (1)
  • yilmazbah (1)
  • defleury (1)
  • AfredComma (1)
  • ianpgm (1)
  • shaman-narayanasamy (1)
  • mocat2 (1)
  • jbird9 (1)
  • shashankx (1)
Pull Request Authors
  • MrOlm (3)
  • TaskeHAMANO (1)
  • nr0cinu (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 41 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 18
  • Total maintainers: 1
pypi.org: irep

calcualte iRep replication rates from metagenome sequencing

  • Versions: 18
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 41 Last month
Rankings
Stargazers count: 8.6%
Dependent packages count: 10.0%
Forks count: 11.4%
Average: 15.9%
Dependent repos count: 21.7%
Downloads: 27.9%
Maintainers (1)
ctb
Last synced: 11 months ago

Dependencies

requirements.txt pypi
  • ctbBio *
  • lmfit *
  • matplotlib *
  • numpy *
  • pandas *
  • scipy *
  • seaborn *
setup.py pypi
  • ctbBio *
  • lmfit *
  • matplotlib *
  • numpy *
  • pandas *
  • scipy *
  • seaborn *