Closed jjinzhou closed 7 months ago
The header string you are using looks incorrect. It should be something like:
minia3:scaffold_\d+_uid_\d+
to match a header name like:
scaffold_41_uid_1710815508
The --regex
command won't work - that's meant for something else.
Thank you so much for your quick reply! But sorry, I think it was a formatting error caused by pasting. That's exactly the format I'm using. But the mistake still occurs
Lzhensectabl:phyLuce_assembLy_match_contigs_to_probes -contigs assemblies_endding\ -probes hymenoptera-v2-PRINCIPAL-bait-set. fasta\ --output uce_extraction \ -min-coverage 67 \ --min-identity80 2024-04-23 10:33:46,824 - phyluce_assembly_match_contigs_to_probes - INFO ======= Starting phyluce_assembly_match_contigs_to_probes 2024-04-23 10:33:46,824 - phyluce_assembly_match_contigs_to_probes - INFO
I'm not sure - Minia is not a supported assembler, so what you are trying to do is non-standard. If I had to guess, it would be that some scaffolds/contigs in the output have a different header format than the one you think they have. But I don't use Minia, so I'm not sure what the header format looks like for all scaffolds/contigs.
Thank you very much for your help. I have re-checked the header format of each sample, and it is indeed the same format. But I didn't have a lot of samples so I decided to reassemble them with spades to avoid this problem. Wish you have a good day!
Dear Professor Faircloth,
I'm having a problem running this command"phyluce_assembly_match_contigs_to_probes", which seems to be the same problem as #233 and #321. I modified the
~/.phyluce.conf
in conda environment according to your answers to these two questions, i.eI made this change because the assembly software was selected Minia3 and the file starts with
scaffold_41_uid_1710815508
.But the results still show the same error. I then tried the--regex scaffold_\d+_uid_\d+
parameter, but the results were still wrong.I don't know what went wrong and I was hoping for your guidance. Here is the code I used, and the specific error
File "~/miniconda3/envs/phyluce-1.7.3/bin/phyluce_assembly_match_contigs_to_probes", line 421, in <module> main() \n File "~/miniconda3/envs/phyluce-1.7.3/bin/phyluce_assembly_match_contigs_to_probes", line 354, in main contig_name = get_contig_name(lz.name1) File "~/miniconda3/envs/phyluce-1.7.3/bin/phyluce_assembly_match_contigs_to_probes", line 279, in get_contig_name return match.groups()[0] AttributeError: 'NoneType' object has no attribute 'groups'