Hi,
I have an error using FourCseq, which I don't really understand as I was usign the package before without problem.
Here is my code:
> 4C_exptData <- SimpleList(projectPath="myPath",fragmentDir="fragmentDir",referenceGenomeFile ="chr.fa",primerFile="primer.fa",bamFilePath="bam",reSequence1="GTAC",reSequence2="GATC")
> 4C_colData <- DataFrame(viewpoint="vp",condition=factor(rep(c("cell1", "cell2"),each=2),levels=c("cell1", "cell2")),replicate=c(1,2)),bamFile=c("cell1_rep1.bam","cell1_rep2.bam","cell2_rep1.bam","cell2_rep2.bam"),sequencingPrimer="first")
> 4C_fc <- FourC(4C_colData, 4C_exptData)
> 4C_fc <- addFragments(4C_fc,save=F)
> 4C_fc <- addViewpointFrags(4C_fc, primerFragFile="fragmentDir/primerFragments.rda")
> 4C_fc <- countFragmentOverlaps(4C_fc)
And here I got :
reading bam files
Error in NSBS(i, x, exact = exact, upperBoundIsStrict = !allow.append) :
subscript contains NAs
Here is my sessionInfo:
> sessionInfo()
R version 3.1.0 RC (2014-04-05 r65382)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] splines stats4 parallel stats graphics grDevices utils
[8] datasets methods base
other attached packages:
[1] TxDb.Mmusculus.UCSC.mm10.knownGene_3.0.0
[2] GenomicFeatures_1.18.3
[3] AnnotationDbi_1.28.1
[4] Biobase_2.26.0
[5] FourCSeq_1.0.0
[6] DESeq2_1.6.3
[7] RcppArmadillo_0.4.650.1.1
[8] Rcpp_0.11.4
[9] ggplot2_1.0.0
[10] GenomicRanges_1.18.4
[11] GenomeInfoDb_1.2.4
[12] IRanges_2.0.1
[13] S4Vectors_0.4.0
[14] BiocGenerics_0.12.1
loaded via a namespace (and not attached):
[1] acepack_1.3-3.3 annotate_1.44.0 base64enc_0.1-2
[4] BatchJobs_1.5 BBmisc_1.9 BiocParallel_1.0.3
[7] biomaRt_2.22.0 Biostrings_2.34.1 biovizBase_1.14.1
[10] bitops_1.0-6 brew_1.0-6 BSgenome_1.34.1
[13] checkmate_1.5.1 cluster_2.0.1 codetools_0.2-10
[16] colorspace_1.2-5 DBI_0.3.1 dichromat_2.0-0
[19] digest_0.6.8 fail_1.2 fda_2.4.4
[22] foreach_1.4.2 foreign_0.8-63 Formula_1.2-0
[25] genefilter_1.48.1 geneplotter_1.44.0 GenomicAlignments_1.2.2
[28] GGally_0.5.0 ggbio_1.14.0 graph_1.44.1
[31] grid_3.1.0 gridExtra_0.9.1 gtable_0.1.2
[34] gtools_3.4.1 Hmisc_3.15-0 iterators_1.0.7
[37] lattice_0.20-30 latticeExtra_0.6-26 locfit_1.5-9.1
[40] MASS_7.3-39 Matrix_1.1-5 munsell_0.4.2
[43] nnet_7.3-9 OrganismDbi_1.8.0 plyr_1.8.1
[46] proto_0.3-10 RBGL_1.42.0 RColorBrewer_1.1-2
[49] RCurl_1.95-4.5 reshape_0.8.5 reshape2_1.4.1
[52] rpart_4.1-9 Rsamtools_1.18.3 RSQLite_1.0.0
[55] rtracklayer_1.26.2 scales_0.2.4 sendmailR_1.2-1
[58] stringr_0.6.2 survival_2.38-1 tcltk_3.1.0
[61] tools_3.1.0 VariantAnnotation_1.12.9 XML_3.98-1.1
[64] xtable_1.7-4 XVector_0.6.0 zlibbioc_1.12.0
Hi Felix,
The changes to the implementation of findOverlaps()/countOverlaps() and family are in devel (BioC 3.1) but it looks like Samuel is using release (BioC 3.0). The details of these changes were announced on the bioc-devel mailing list in December:
https://stat.ethz.ch/pipermail/bioc-devel/2014-December/006749.html
If you find problems or have questions about these changes, please use bioc-devel.
Thanks,
H.