Science Score: 20.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
  • Academic publication links
    Links to: ncbi.nlm.nih.gov
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.3%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: hoangtn
  • Language: R
  • Default Branch: master
  • Homepage: CNVrd2
  • Size: 97.7 MB
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 3
  • Open Issues: 1
  • Releases: 0
Created almost 13 years ago · Last pushed over 10 years ago

https://github.com/hoangtn/CNVrd2/blob/master/

========================================================

### CNVrd2: A package for measuring gene copy number, identifying SNPs tagging copy number variants, and detecting copy number polymorphic genomic regions


#### Install and use

Download the file 

> CNVrd2_1.9.1.tar.gz

Install the package

> R CMD INSTALL CNVrd2_1.9.1.tar.gz

Please see the file [**CNVrd2.pdf**](https://github.com/hoangtn/CNVrd2/blob/master/CNVrd2.pdf)

Window users can use the link of the Bioconductor Project:

http://www.bioconductor.org/packages/devel/bioc/html/CNVrd2.html

####To detect CNVRs, please use the function SRBreak in:

https://github.com/hoangtn/SRBreak/blob/master/TestSRBreak.ipynb

#### Notes: using the 1000 Genomes data

Please read information below or see the file [**using1000Genome**](https://github.com/hoangtn/CNVrd2/blob/master/using1000Genome.md) 


Please go to [**QuestionsAndAnswers**](https://github.com/hoangtn/CNVrd2/blob/master/QuestionsAndAnswers.md) to take a quick look at asked questions about the package.

------------------------------------
------------------------------------



#### USING THE 1000 GENOMES DATA 



This note describes some simple steps for using the data from the 1000 Genomes Project http://www.1000genomes.org/.

##### Bam files 

Download an index file

```{}
wget ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/alignment_indices/20130502.low_coverage.alignment.index
```

Obtain a list of bam files (the first column)

```{}
cat 20130502.low_coverage.alignment.index |awk '{print $1}'|grep '\.mapped' > listbam.txt
```

There are 2535 bam files on the page ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data/. Therefore, we can make a list of these bam files and their full links.

```{}
awk '{print "ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/"$0}' < listbam.txt > listbamAndFullLinks.txt
```

We can choose a population (or multiple populations) to find tagSNPs. For example, here we choose the Mexican Ancestry in Los Angeles (MXL) population and find tagSNPs for FCGR3B gene.

```{}
cat listbamAndFullLinks.txt|grep "MXL" > listMXL.txt 
```
The gene is at chr1:161592986-161601753 http://www.ncbi.nlm.nih.gov/gene/2215, so we will use **samtools** (Li et al. 2009 ) http://samtools.sourceforge.net/ to download a 1Mb region around the gene: chr1:161100000-162100000.

```{}
while read line
do
tempName=$(echo $line|awk -F"/" '{print $NF}')
samtools view -hb $line 1:161100000-162100000 > $tempName
done < listMXL.txt 
```

After downloading, we can use **samtools** to keep only reads mapped:

```{}
for file in $(ls *bam)
do

#####Index bam file
samtools index $file

#####Keep only read mapped
sammtols view -F 4 $file -b > temp.bam

mv temp.bam $file
done
```

A good website to understand SAM/BAM flags is http://broadinstitute.github.io/picard/explain-flags.html

##### VCF files

We can use **samtools** to obtain a vcf file (Danecek et al. 2011 ) http://vcftools.sourceforge.net/ for all MXL samples above ***or*** we can use the SNP data of the 1000 Genomes Project.

Here, we use the data from the 1000 Genomes Project.

All VCF files can be obtained from this page http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/analysis_results/integrated_call_sets/

We choose a region, for example chr1:161400000-161700000 flanking the FCGR3 gene to identify tagSNPs.

Download and index the vcf file by using "tabix" and "bgzip" command lines in the **tabix** tool (Li, 2011 ) http://samtools.sourceforge.net/tabix.shtml:

```{}
tabix -h http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase1/analysis_results/integrated_call_sets/ALL.chr1.integrated_phase1_v3.20101123.snps_indels_svs.genotypes.vcf.gz 1:161400000-161700000  > chr1.161400000.161700000.vcf
```

Index the file:

```{}
bgzip chr1.161400000.161700000.vcf -c > chr1.161400000.161700000.vcf.gz

tabix -p vcf chr1.161400000.161700000.vcf.gz
```

##### References

- P. Danecek, A. Auton, G. Abecasis, C.A. Albers, E. Banks, M.A. DePristo, R.E. Handsaker, G. Lunter, G.T. Marth, S.T. Sherry,  others,   (2011) The variant call format and VCFtools.  Bioinformatics  27  (15)   2156-2158
- H. Li, B. Handsaker, A. Wysoker, T. Fennell, J. Ruan, N. Homer, G. Marth, G. Abecasis, R. Durbin,  others,   (2009) The sequence alignment/map format and SAMtools.  Bioinformatics  25  (16)   2078-2079
- Heng Li,   (2011) Tabix: fast retrieval of sequence features from generic TAB-delimited files.  Bioinformatics  27  (5)   718-719

Owner

  • Name: hoangtn
  • Login: hoangtn
  • Kind: user

GitHub Events

Total
Last Year

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 76
  • Total Committers: 4
  • Avg Commits per committer: 19.0
  • Development Distribution Score (DDS): 0.171
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
hoangtn h****n@g****m 63
vngs h****g@g****m 6
James Boocock s****1@g****m 5
Hoang Nguyen h****g@e****u 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 2
  • Total pull requests: 2
  • Average time to close issues: about 14 hours
  • Average time to close pull requests: about 6 hours
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ramayyala (1)
  • BTessoulin (1)
Pull Request Authors
  • theboocock (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • bioconductor 27,589 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
bioconductor.org: CNVrd2

CNVrd2: a read depth-based method to detect and genotype complex common copy number variants from next generation sequencing data.

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 27,589 Total
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 12.6%
Downloads: 37.7%
Maintainers (1)
Last synced: 11 months ago

Dependencies

CNVrd2/DESCRIPTION cran
  • R >= 3.0.0 depends
  • VariantAnnotation * depends
  • ggplot2 * depends
  • gridExtra * depends
  • methods * depends
  • parallel * depends
  • rjags * depends
  • DNAcopy * imports
  • IRanges * imports
  • Rsamtools * imports
  • knitr * suggests