jianhong / ATACseqQC

ATAC-seq Quality Control

Home Page:https://jianhong.github.io/ATACseqQC/articles/ATACseqQC.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phastCons100way.UCSC.hg19 equivalent for mm10 ?

Just08 opened this issue · comments

commented

Hi,

I work with mouse genome (mm10) and i don't find any phastCons100way.UCSC.hg19 equivalent for mm10 to do the "Split reads" part of bioconductor tutorial.

Sorry for my bad english.

Thanks in advance for your help.

commented

Thank you for your answer .
When I launch splitBam it output me only the shifted bam with the index but not the bam split by length.

Here a part of the errors log :
`
[bam_translate] PG tag "MarkDuplicates" on read "NB500967:20:HNJHTBGXB:2:23202:22212:9651" encountered with no corresponding entry in header, tag lost. Unknown tags are only reported once per input file for each tag ID.
[bam_translate] PG tag "MarkDuplicates" on read "NB500967:20:HNJHTBGXB:1:11105:8407:8325" encountered with no corresponding entry in header, tag lost. Unknown tags are only reported once per input file for each tag ID.
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes
[W::bgzf_read_block] EOF marker is absent. The input is probably truncated

`
The bam I use is the ouptut of picard MarkDuplicates with the REMOVE_DUPLICATE=true options and there is no errors in summary of picard ValidateSamFile.

Justine

commented

Thanks you, it remove PG error but not :

[E::bgzf_read] Read block operation failed with error -1 after 0 of 4 bytes [W::bgzf_read_block] EOF marker is absent. The input is probably truncated

The only way splitBam function work for me is when I launch it by chromosome and then do corresponding merge (probably a memory problem but I have 48 Go of RAM on my workstation).
But now , how to reproduce the objs variable of the tutorial ?

Justine

commented

I think I can't but could you tell me if the following code can be the solution to create the objs variable ?
It works but I just want to know if there is no problem to do that .

Thanks

bamfiles <- paste(paste(wd,paste(outPath,bamfile.labels,sep = "\\"),sep=""),
                     c("NucleosomeFree.sorted.bam",
                     "mononucleosome.sorted.bam",
                     "dinucleosome.sorted.bam",
                     "trinucleosome.sorted.bam"),sep = "\\")


indexBam(bamfiles,overwrite=FALSE)


nf <-readBamFile( bamfiles %>% 
   str_subset(pattern = "NucleosomeFree"))
  

mono <- readBamFile( bamfiles %>% 
   str_subset(pattern = "mononucleosome"))


di <- readBamFile( bamfiles %>% 
   str_subset(pattern = "dinucleosome"))


tri <- readBamFile( bamfiles %>% 
   str_subset(pattern = "trinucleosome"))

objs <- GAlignmentsList(NucleosomeFree=nf, mononucleosome=mono,dinucleosome=di,trinucleosome=tri)
commented

I solved this error by updating my R from 3.6.3 to 4.1.2 and reinstalling all packages.