Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phastCons100way.UCSC.hg19 equivalent for mm10 ? #28

Open
Just08 opened this issue Jul 10, 2020 · 7 comments
Open

phastCons100way.UCSC.hg19 equivalent for mm10 ? #28

Just08 opened this issue Jul 10, 2020 · 7 comments

Comments

@Just08
Copy link

Just08 commented Jul 10, 2020

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.

@jianhong
Copy link
Owner

jianhong commented Jul 10, 2020 via email

@Just08
Copy link
Author

Just08 commented Jul 16, 2020

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

@jianhong
Copy link
Owner

jianhong commented Jul 16, 2020 via email

@Just08
Copy link
Author

Just08 commented Jul 21, 2020

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

@jianhong
Copy link
Owner

jianhong commented Jul 21, 2020 via email

@Just08
Copy link
Author

Just08 commented Jul 21, 2020

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)

@gaagin-lok
Copy link

gaagin-lok commented Nov 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants