Skip to content

Commit caad27f

Browse files
author
jamesdalg
authored
Merge pull request #25 from jamesdalg/dev
CRAN fixes--rebinGenomicInteractions
2 parents eb898cd + 147ce40 commit caad27f

File tree

7 files changed

+32
-12
lines changed

7 files changed

+32
-12
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Package: CNVScope
22
Type: Package
33
Title: A Versatile Toolkit for Copy Number Variation Relationship Data Analysis and Visualization
4-
Version: 2.8.2
5-
Date: 2019-10-23
4+
Version: 2.9.2
5+
Date: 2019-12-5
66
Author: James Dalgeish, Yonghong Wang, Jack Zhu, Paul Meltzer
77
Maintainer: James Dalgleish <[email protected]>
88
BugReports: https://github.com/jamesdalg/CNVScope/issues/
99
Depends: R (>= 3.5.0),ggplot2
10-
Imports: InteractionSet,BiocManager,tidyr,S4Vectors,circlize,igraph,visNetwork,reshape2,magrittr,htmltools,htmlwidgets,jointseg,plotly,shinyjs,logging,shiny,RCurl,foreach,GenomicFeatures,GenomicInteractions,HiCseg,IRanges,Matrix,OpenImageR,biomaRt,heatmaply,matrixStats,shinythemes,shinycssloaders,spatialfil,GenomicRanges,plyr,data.table,rslurm,dplyr,numbers,rtracklayer,BSgenome.Hsapiens.UCSC.hg19,doParallel,stringr,tibble,GenomeInfoDb
10+
Imports: InteractionSet,BiocManager,tidyr,S4Vectors,circlize,igraph,visNetwork,reshape2,magrittr,htmltools,htmlwidgets,jointseg,plotly,shinyjs,logging,shiny,RCurl,foreach,GenomicFeatures,GenomicInteractions,HiCseg,IRanges,Matrix,OpenImageR,biomaRt,heatmaply,matrixStats,shinythemes,shinycssloaders,spatialfil,GenomicRanges,plyr,data.table,rslurm,dplyr,numbers,rtracklayer,BSgenome.Hsapiens.UCSC.hg19,doParallel,stringr,tibble,GenomeInfoDb,Biostrings
1111
Suggests: knitr, rmarkdown,remotes,pwr,ComplexHeatmap
1212
VignetteBuilder: knitr
1313
URL: https://github.com/jamesdalg/CNVScope/

NEWS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
CNVScope v2.8.1 (Release Date 2019-10-23)
1+
CNVScope v2.9.2 (Release Date 2019-12-5)
2+
==============
3+
*Added an explicit dependency, Biostrings to keep CRAN check errors on debian from occurring.
4+
*Made a small fix to rebinGenomicInteractions, fixing a check at the end to handle a vector input
5+
**This will make the package compatible with R 4.0.
6+
7+
CNVScope v2.8.2 (Release Date 2019-10-23)
28
==============
39
*Removed all blockseg references in code. It was a nice feature to have a third algorithm, but blockseg will not be on CRAN shortly.
410

R/rebinGenomicInteractions.R

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,16 @@ rebinGenomicInteractions<-function(gint=NULL,whole_genome_matrix=NULL,rownames_g
6363
names(outputline)<-outputnames
6464
outputline
6565
}
66-
if(class(output)=="character" & is.null(nrow(output))){output_df<-as.data.frame(t(output))
67-
#colnames(output_df)<-c("row_bin_index","col_bin_index","row_bin_label","col_bin_label",as.character(names(gint)))
68-
} else {
66+
67+
if(class(output)[1]=="character" & is.null(nrow(output))){
68+
output_df<-as.data.frame(t(output))
69+
colnames(output_df)<-c("row_bin_index","col_bin_index","row_bin_label","col_bin_label",as.character(names(gint)))
70+
71+
} else {
72+
print("arrived in else condition")
6973
output_df<-as.data.frame(matrix(as.character(output),nrow=nrow(output)))
70-
colnames(output_df)<-c("row_bin_index","col_bin_index","row_bin_label","col_bin_label",as.character(colnames(as.data.frame(gint[1]))))}
74+
colnames(output_df)<-c("row_bin_index","col_bin_index","row_bin_label","col_bin_label",as.character(colnames(as.data.frame(gint[1]))))
75+
}
76+
7177
return(output_df)
7278
}

doc/additonal_examples.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ sample_aggregated_segvals_aml<-formSampleMatrixFromRawGDCData(tcga_files = targe
5353
saveRDS(sample_aggregated_segvals_aml,"aml_sample_matched_input_matrix.rds")
5454
```
5555

56-
Now that we've created and saved the AML matrix, let's visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene(. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations(reference: http://www.bloodjournal.org/blood/article/130/Supplement%201/3800/71708/Recurrent-Copy-Number-Variants-Are-Highly?searchresult=1).
56+
Now that we've created and saved the AML matrix, let's visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations.
57+
58+
Reference: Tarlock et al.; Recurrent Copy Number Variants Are Highly Prevalent
59+
in Acute Myeloid Leukemia. Blood 2017; 130 (Supplement 1): 3800.).
5760

5861
Some of the bins are invariant and correlation requires that the standard deviation be a value other than zero (otherwise correlation cannot be calculated). We will remove them in a couple steps and transpose the matrix, making the columns the bins and the samples the rows.
5962
```{r aml_plots, eval=T,echo=T}

doc/additonal_examples.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ <h4 class="date">7/9/2019</h4>
389389
print(target_files_aml)</code></pre>
390390
<pre class="r"><code>sample_aggregated_segvals_aml&lt;-formSampleMatrixFromRawGDCData(tcga_files = target_files_aml,format = &quot;TARGET&quot;)
391391
saveRDS(sample_aggregated_segvals_aml,&quot;aml_sample_matched_input_matrix.rds&quot;)</code></pre>
392-
<p>Now that we’ve created and saved the AML matrix, let’s visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene(. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations(reference: <a href="http://www.bloodjournal.org/blood/article/130/Supplement%201/3800/71708/Recurrent-Copy-Number-Variants-Are-Highly?searchresult=1" class="uri">http://www.bloodjournal.org/blood/article/130/Supplement%201/3800/71708/Recurrent-Copy-Number-Variants-Are-Highly?searchresult=1</a>).</p>
392+
<p>Now that we’ve created and saved the AML matrix, let’s visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations.</p>
393+
<p>Reference: Tarlock et al.; Recurrent Copy Number Variants Are Highly Prevalent in Acute Myeloid Leukemia. Blood 2017; 130 (Supplement 1): 3800.).</p>
393394
<p>Some of the bins are invariant and correlation requires that the standard deviation be a value other than zero (otherwise correlation cannot be calculated). We will remove them in a couple steps and transpose the matrix, making the columns the bins and the samples the rows.</p>
394395
<pre class="r"><code>sample_aggregated_segvals_aml&lt;-readRDS(&quot;aml_sample_matched_input_matrix.rds&quot;)
395396
invariant_bins&lt;-which((sample_aggregated_segvals_aml[stringr::str_detect(rownames(sample_aggregated_segvals_aml),&quot;chr7&quot;),] %&gt;% t() %&gt;% as.data.frame() %&gt;% sapply(sd))==0)

vignettes/additonal_examples.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ sample_aggregated_segvals_aml<-formSampleMatrixFromRawGDCData(tcga_files = targe
5353
saveRDS(sample_aggregated_segvals_aml,"aml_sample_matched_input_matrix.rds")
5454
```
5555

56-
Now that we've created and saved the AML matrix, let's visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene(. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations(reference: http://www.bloodjournal.org/blood/article/130/Supplement%201/3800/71708/Recurrent-Copy-Number-Variants-Are-Highly?searchresult=1).
56+
Now that we've created and saved the AML matrix, let's visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations.
57+
58+
Reference: Tarlock et al.; Recurrent Copy Number Variants Are Highly Prevalent
59+
in Acute Myeloid Leukemia. Blood 2017; 130 (Supplement 1): 3800.).
5760

5861
Some of the bins are invariant and correlation requires that the standard deviation be a value other than zero (otherwise correlation cannot be calculated). We will remove them in a couple steps and transpose the matrix, making the columns the bins and the samples the rows.
5962
```{r aml_plots, eval=T,echo=T}

vignettes/additonal_examples.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ <h4 class="date">7/9/2019</h4>
389389
print(target_files_aml)</code></pre>
390390
<pre class="r"><code>sample_aggregated_segvals_aml&lt;-formSampleMatrixFromRawGDCData(tcga_files = target_files_aml,format = &quot;TARGET&quot;)
391391
saveRDS(sample_aggregated_segvals_aml,&quot;aml_sample_matched_input_matrix.rds&quot;)</code></pre>
392-
<p>Now that we’ve created and saved the AML matrix, let’s visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene(. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations(reference: <a href="http://www.bloodjournal.org/blood/article/130/Supplement%201/3800/71708/Recurrent-Copy-Number-Variants-Are-Highly?searchresult=1" class="uri">http://www.bloodjournal.org/blood/article/130/Supplement%201/3800/71708/Recurrent-Copy-Number-Variants-Are-Highly?searchresult=1</a>).</p>
392+
<p>Now that we’ve created and saved the AML matrix, let’s visualize it with a quick correlation map of a single chromosome, chromosome 7, the location of the BRAF gene and nearby EZH2 gene. The BRAF gene (chr7:140419127-140624564) is a locus for recurrent copy number aberrations.</p>
393+
<p>Reference: Tarlock et al.; Recurrent Copy Number Variants Are Highly Prevalent in Acute Myeloid Leukemia. Blood 2017; 130 (Supplement 1): 3800.).</p>
393394
<p>Some of the bins are invariant and correlation requires that the standard deviation be a value other than zero (otherwise correlation cannot be calculated). We will remove them in a couple steps and transpose the matrix, making the columns the bins and the samples the rows.</p>
394395
<pre class="r"><code>sample_aggregated_segvals_aml&lt;-readRDS(&quot;aml_sample_matched_input_matrix.rds&quot;)
395396
invariant_bins&lt;-which((sample_aggregated_segvals_aml[stringr::str_detect(rownames(sample_aggregated_segvals_aml),&quot;chr7&quot;),] %&gt;% t() %&gt;% as.data.frame() %&gt;% sapply(sd))==0)

0 commit comments

Comments
 (0)