Closed metalichen closed 2 years ago
Hi Gulnara, thanks for using MarkerMAG, can you try with the demo dataset and see if the error still exists? Weizhi
https://drive.google.com/drive/folders/1edzpj6QV6jRQ24F1wT_9pIDzOIV_b3ki?usp=sharing
I am running into a similar issue.
I was able to resolve by modifying the source code in link_16s.py a bit (removing the if-else statement starting at line 2747, "if reads_vs_16s_sam is None:", but keeping the mapping and sorting commands). In that case, mapping completed prior to sorting and the expected files could be generated, that is the sam file and sorted sam file.
However, the sorted sam file seems not be able to be found at the next command (os.system('wc -l %s > %s' % (input_reads_to_16s_sam_sorted, input_reads_to_16s_sam_sorted_line_num))). Running that part then manually seems to work ... Not sure what is going on ... could the developers provide some input?
Regards,
Dieter
Thanks for reporting the issue. This is strange, I now removed the "if-else statement", though I have no idea why it matters. Can you please upgrade MarkerMAG to 1.1.19 and see if you can bypass the error?
Thanks. I tried the newer version but now again run into the issue the original poster mentioned, namely that sorting appears to start prior to completing the mapping (now seems that the if-else statement was not the cause of the issue I guess). As a results, the required sam file is not found although it appears to be present. Fyi, I am using Python 3.9.12 and Ubuntu 16.04.7 LTS.
Dieter.
I use "&> /dev/null" to hide STDOUT and STDERR reports from bowtie and samtools, not sure if this causes the error. Can you please remove it from the bowtie_read_to_16s_cmd and sort_by_read_cmd lines and let me know if the error still exist? Thanks, Weizhi
Great.
That fixed the issue, at least for the initial mapping and sorting commands. It (that is, "&> /dev/null") may need to be removed at additional lines since a similar issue occurs later on. Actually, this was probably why I got the mapping running previously since I had probably also removed that part, if I recall correctly.
Thanks a lot for helping me resolve this issue.
Dieter
The troubling "&> /dev/null" has now been removed throughout all scripts in version 1.1.20. Cheers, Weizhi
Hello,
Thanks for your tool! I installed the 1.1.5 version today, and ran into a problem running the link module
The mentioned .sam file, is, however, there. I also noticed that already after the program finished with the error, bowtie2-align was still running in the background for some time.
I'm using samtools v1.7 and bowtie2-align-s version 2.3.5.1
Am I doing something wrong?
Thanks, Gulnara