Open sunta3iouxos opened 1 month ago
The error message means there is no name for the gal1. Try to gave a name for the element in the list.
Thank you, where and how I am setting this name:
> names(gal1) <- "gal1"
Error in validObject(x) : invalid class "GAlignments" object: 1:
'x@NAMES' is not parallel to 'x'
invalid class "GAlignments" object: 2:
'names(x)' must be NULL or have the length of 'x'
just to note that when I load an rds file of the gal1 it gives me this:
GAlignments object with 74129664 alignments and 18 metadata columns:
while when I do the readGAlignments aproach I get:
GAlignments object with 74129664 alignments and 0 metadata columns:
Error in .Call2("vector_OR_factor_extract_ranges", x, start, width, PACKAGE = "S4Vectors") :
'end' must be <= 'length(x)'
might this be the error?
Could you please show me the header of the metadata of your gal1? The names maybe saved in the metadata.
Could you please let me know what I should provide, do you need the ouput of a specific command/function?
try
head(mcols(gal1))
I am sorry for the delay: Here is the output:
> head(mcols(gal2))
DataFrame with 6 rows and 0 columns
So, there is nothing there please also note the sise differences of gal1 (following the pipeline) and gal2 (just adding the bam via readGAlignments and here is what I get when I follow the pipeline:
Let's try to remove the conservation score first and rerun the script to see if you can repeat the error. If yes, please share me a subset of your gal.
Hi again, so I have created and indexed the shifted bam files as in the tutorial.
all bam files appear to have been properly generated and indexed. I would like now to read them to create the free/mono/di/trinucleosomes. In the manual it is stated that the obj in the
splitGAlignmentsByCut
function should be a "an object of GAlignments". So I am loading the bam with theGenomicAlignments::readGAlignments
function. But I am getting the following error:Any idea how to create a proper GAlignment object from the shifted bam file?
THANK YOU