Thank you very much!
It works!
Although now when I try the following
chip.qual <-QualityScaledBStringSet(chip.bam[[name]]$seq, chip.bam[[name]]$qual)
i get that error
Error in XStringSet("B", x, start = start, end = end, width = width, use.names = use.names) :
error in evaluating the argument 'x' in selecting a method for function 'XStringSet': Error in chip.bam[[name]] : no such index at level 2
do you know what should I do?
Thank you very much! I would appreciate your help!
best regards Lena
I don't know anything about scanBam, but it is only a warning message and it says you have 0 errors, so it should work. Does it not give you no output or not the output taht you expect?
there is no output at all! I have a for loop initially which scans the BAM file for all the chromosomes....so the loop stops and I get the message....My script is correct because it is working perfectly with other BAM files....
Can you post the header of the non-working BAM file and a working BAM file?
yeah or run scanBamHeader to see if that chromosome really exists (it might just be '10')
thank you very much! it works! however I have now another problem....if you can see the post below....can you please help me? thank you in advance. best regards. Lena