-
Notifications
You must be signed in to change notification settings - Fork 27
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
error in Viral_Track_scanning.R #23
Comments
Hi I can't run "Viral_Track_scanning.R", did you run it in windows or linux R? I get this error message, despite having Biostrings installed |
I don't have any error about the packages. |
Thanks for your reply, may you please guide me as to how you made it work to this step? |
sorry, I haven't finished a successful test now. I used it firstly today. |
This is my status now: Export of the viral SAM file done for hgmm_100_R2_extracted @Shiywa, same as you. |
Hi,
The class of Viral_reads_contents is "matrix" "array" which leads to the issue observed since if only wants one class. I would suggest that you just delete this part, and try to run again. (I am currently running it, I hope this solved the issue) From my understanding of the code, you can already see if you have virus mapped at this step if you look at the file Please let me know if this helps. |
Hi @GhobrialMoheb, From my experience you should delete everything from your output folder starting from scratch every time. (remove unsuccessful attempt to run the viral track). And I am running everything on Ubuntu. (you can easily install Ubuntu on windows 10), but I have no idea why you have issue. |
@zorglubz-coder , thanks for the comment. The issue I have realized is that "BAM_file@elementMetadata$seq" at step 338 yields NULL. Yes, I do clear the output folder. May I ask you, which FASTQ files you are doing the trial on? Did your trial work? |
I did not do a trial, and I never finished one analysis of my data, so I am by no mean an expert. Are you sure you are in the foreach loop? From what I understand the foreach loop create its own environment, so you cannot access it once it crashed. This would explain the NULL you have I can only suggest that you try to study everything in R studio in windows (at least that is how I did). You just have to install and load the packages. Export one bam file present in the output_folder/fasta_name_extracted/Viral_BAM_files/viral_name.bam, and try to run
|
I actually did yes a manual run, and the issue for me was at the level of the BAM file, it lacks "elementMetadata$seq" |
Is it only for a specific bam file, or all of them? |
I did multiple trials on different FASTQ files, and the issue is the same throughout. I am not sure though if there is a FASTQ file that is for sure good to use as a control to make sure the script runs smoothly |
I am sorry if you did that already, but I need to be sure.
|
yes, I do it for a single BAM file |
Honestly I have not idea about anything at this point. I don't knwo really how it works. |
here is your BAM file, I still don't see content of element metadata (as it is the case for my runs) |
Did you get QC reports in the end ? |
I am puzzled here, could you send a picture of the code you ran? |
I am still currently running it after solving the issue mentioned earlier |
BAM_file= readGAlignments("refseq_NC_031338_10056nt_Moku.bam") |
I get an error when I run: |
How is it possible, that I get this error while you don't, when it is the same BAM file ? |
Well...
|
If you have an error in the package installation, then this is where the issue is. |
All the packages are installed, I will reinstall them and see |
I did it! |
great, thanks alot |
May I ask you some questions:
|
Also, the BAM file you sent me is 424 Kb, is a bit small - just wanted to be sure is the correct one? |
"_Aligned.sortedByCoord.out.bam" is the BAM file to load in the function: |
Yes that is the correct size for this bam file, and I just provided the full path to the file so it is longer. |
I see, I don't know why it give me this error |
No it is the bam files present in Viral_BAM_files see the line bellow form the Viral_track_file BAM_file= readGAlignments(paste(k,"Viral_BAM_files/",i,".bam",sep = ""),param = ScanBamParam(what =scanBamWhat())) |
Did this removal of the line help? |
@zorglubz-coder , now I could successfully load the BAM file and get the viral reads: However I get this error: Export of the viral SAM file done for SRR11616442 |
Yes, I have no more issue without the mentioned lines |
Are you still trying to run it manually? I had this issue also when I ran it manually, but running the Viral_Track_scanning.R entirely (with the if line 343 removed) worked just fine. |
yes, I have this issue with the Viral_Track_scanning.R run |
I am sorry but I cannot help you anymore on this issue |
I never ran these lines in manual so I don't think I had this error. One last recommendation, if the package re installation changed some stuff, maybe start everything from scratch: I will not be able to help you anymore, I hope you can figure it out. |
Thanks alot for your help |
nice, good luck for the rest of you analysis |
Thanks for your suggestion. I have solved the problem by setting |
Hello, I was wondering if you have successfully run your code for COVID-19? When I aligned to the BAM file, I didn't get any correspondence for COVID-19. I've tried several datasets but still can't generate it successfully. If you have tried it, could you please send me a copy of your FASTA file (the SARS-CoV-2 reference genome)? I would like to try again after generating an index with STAR. |
Hi,
thanks for your work, I just hava a question about the
Viral_Track_scanning.R
. If there is no any mapping of virus, will it report an error like following?The text was updated successfully, but these errors were encountered: