-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from bahlolab/devel_tankard
0.88.6 Former-commit-id: 855ee94
- Loading branch information
Showing
18 changed files
with
177 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
Package: exSTRa | ||
Type: Package | ||
Title: Expanded STR algorithm: detecting expansions in Illumina sequencing data | ||
Version: 0.88.5 | ||
Version: 0.88.6 | ||
Date: 2019-01-21 | ||
Author: Rick Tankard | ||
Maintainer: Rick Tankard <[email protected]> | ||
Description: Detecting expansions with paired-end Illumina sequencing data. | ||
License: GPL-2 | ||
Imports: | ||
testit (>= 0.7), | ||
checkmate, | ||
data.table (>= 1.10.4-3), | ||
stringr (>= 1.2.0), | ||
reshape2 (>= 1.4.3), | ||
magrittr (>= 1.5), | ||
RColorBrewer (>= 1.1-2) | ||
RColorBrewer (>= 1.1-2), | ||
ggplot2 | ||
Suggests: | ||
testthat (>= 2.0.0), | ||
DiagrammeR (>= 0.9.2), | ||
|
@@ -35,6 +37,7 @@ Collate: | |
'exstra_wgs_pcr_2.R' | ||
'filter_low_scores.R' | ||
'filter_sex.R' | ||
'ggplot.exstra_score.R' | ||
'loci_normal_expansion.R' | ||
'munoz_rueda_al1.R' | ||
'p_values.R' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#' @import ggplot2 | ||
#' @include exstra_wgs_pcr_2.R | ||
NULL | ||
|
||
#' @export | ||
ggplot.exstra_score <- function(data = NULL, ...) { | ||
verify.exstra_score(data) | ||
# Merge sample data into main data | ||
data <- merge(data$data, data$samples, by = "sample") | ||
ggplot(data, ...) | ||
} | ||
|
||
#' @export | ||
ggexstra <- function(x, mapping = aes(x = rep, colour = sample), ...) { | ||
ggplot(x, mapping = mapping, ...) + stat_ecdf() | ||
} | ||
|
||
|
||
|
||
# ggplot(exstra_wgs_pcr_2, aes(x = rep, group = sample)) + stat_ecdf() | ||
|
||
# ggplot(exstra_wgs_pcr_2, aes(x = rep, colour = sample)) + stat_ecdf(aes(colour = sample)) + | ||
# facet_wrap(~locus) | ||
|
||
# ggexstra(exstra_wgs_pcr_2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
library(data.table) | ||
library(exSTRa) | ||
library(glue) | ||
|
||
# Write bed file of reads to extract | ||
known_extraction_bed <- exstra_known$db[, .(chrom, start = chromStart - 1001, end = chromEnd + 1000)] | ||
readr::write_tsv(known_extraction_bed, path = "inst/extdata/known_bam_extract.bed") | ||
|
||
# Extract reads using external tool samtools | ||
bamfile <- "ftp://ftp-trace.ncbi.nlm.nih.gov/giab/ftp/data/AshkenazimTrio/HG002_NA24385_son/NIST_HiSeq_HG002_Homogeneity-10953946/NHGRI_Illumina300X_AJtrio_novoalign_bams/HG002.hs37d5.300x.bam" | ||
system(glue("bash samtools view -L inst/extdata/known_bam_extract.bed {bamfile}")) | ||
|
||
# Also do this with: | ||
# ftp://ftp-trace.ncbi.nlm.nih.gov/giab/ftp/data/AshkenazimTrio/HG003_NA24149_father/NIST_HiSeq_HG003_Homogeneity-12389378/NHGRI_Illumina300X_AJtrio_novoalign_bams/HG003.hs37d5.300x.bam | ||
# ftp://ftp-trace.ncbi.nlm.nih.gov/giab/ftp/data/AshkenazimTrio/HG004_NA24143_mother/NIST_HiSeq_HG004_Homogeneity-14572558/NHGRI_Illumina300X_AJtrio_novoalign_bams/HG004.hs37d5.300x.bam | ||
|
||
# Filter reads that do not have both pairs (preventing warnings) | ||
|
||
|
Oops, something went wrong.