Giter Site home page Giter Site logo

Comments (12)

Yuchunyang2022 avatar Yuchunyang2022 commented on May 23, 2024 1

Hi, thanks for the great help, it works.

from fastdtlmapper.

Yuchunyang2022 avatar Yuchunyang2022 commented on May 23, 2024

Thanks, I got another error when analyzing my own data.
FileNotFoundError: [Errno 2] No such file or directory: 'amox_fastdtlmapper/02_dtl_reconciliation/OG0000000/treerecs/OG0000000_multifurcate.ufboot_recs.nwk'
I also checked the treerecs_log.csv, it said "Error during gene <> species mapping, some gene leaves cannot be mapped:"

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

Does the example data provided by the repository work correctly in your environment?

If the error occurs only with your data, it may be due to some unexpected special characters (symbols) in your input phylogenetic species tree OTU name or CDS fasta file.

Can you upload your input phylogenetic species tree and output 02_dtl_reconciliation/OG0000000/ folder here to investigate the cause of the error?

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

Hope to get your understanding that I canot update the file phylogenetic species tree and output 02_dtl_reconciliation/OG0000000/ folder to the Github for publication, because this is an unpublished work. Attached please see these two files. Thanks

Received email on 2022/09/04 11:53

Thank you for sending the data.

As I expected, the input file contained a special character symbol ($), which may be the cause of the error.

Your species phylogenetic tree file contains $ characters, and these special characters are sometimes automatically converted to _(underscore) by phylogenetic analysis tools (e.g. iqtree). This automatic conversion may prevent FastDTLmapper (treerecs) from mapping the species name to gene names, resulting in this error.

To resolve this error, please convert the $ characters to _ characters in your input species phylogenetic tree beforehand. You may also need to remove the ' (single quotation) from the species phylogenetic tree.
Also, convert the input Fasta or Genbank filename in the same way.

This should work without any problems. If you encounter any more problems, please let me know.

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

To resolve this error, please convert the $ characters to _ characters in your input species phylogenetic tree beforehand.

Sorry, converting $ to _ was not allowed. Please remove the $.

from fastdtlmapper.

Yuchunyang2022 avatar Yuchunyang2022 commented on May 23, 2024

Hi, after I removed all the $ from the phylogenetic tree file and fasta file names, the process was stopped at Reconstruct each OG gene tree using IQ-TREE. It seems that iqtree could not work anymore, no other error was reported except FileNotFoundError: [Errno 2] No such file or directory: 'amox_fastdtlmapper/02_dtl_reconciliation/OG0002313/iqtree/OG0002313.treefile'

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

It may be that the input sequences contain data that are inconvenient for iqtree to generate a gene tree (e.g. too short CDS sequences, strange alignment results).

Sorry for the repeated errors, but could you please email me the contents of the folder 02_dtl_reconciliation/OG0002313?
If you send it to me, I will try to find out the cause.

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

Hi moshi4,

Thanks for the quick response, attached please find the folder.

Cheers,

Yuchun

Received email on 2022/09/04 19:54

I found the cause of the error.
As a conclusion, this error was caused by trimming the alignment length from 66 to 1 by trimal.

The OG0002313_aln_trim.fa you provided has the following result, and it seems that the error occurred in iqtree with this improper alignment result as input.

>gene01
F
>gene02
F
.
.
.
>geneXX
F

Since there is excessive trimming in this example, it seems more correct to use the pre-trimmed alignment.

I will try to release a FastDTLmapper with this bug fixed as soon as possible. I will let you know in this issue when it is released.

from fastdtlmapper.

Yuchunyang2022 avatar Yuchunyang2022 commented on May 23, 2024

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

Newly released v0.3.3 with bug fixes. Please try it to see if it works properly.

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

Hi,

Newly released v0.3.3 was used but an now error was occured "FileNotFoundError: [Errno 2] No such file or directory: 'Amox_fastdtlmapper/02_dtl_reconciliation/OG0000000/treerecs/OG0000000_multifurcate.ufboot_recs.nwk'"

Attached please find the OG0000000 folder

Received email on 2022/09/06 13:58

The error seems to occur because the treerecs used to resolve multifurcation of the gene tree is not outputting the results correctly by the following command.

treerecs -s Amox_fastdtlmapper/00_user_data/tree/ultrametric_tree.nwk \
         -g Amox_fastdtlmapper/02_dtl_reconciliation/OG0000000/treerecs/OG0000000_multifurcate.ufboot \
         -o Amox_fastdtlmapper/02_dtl_reconciliation/OG0000000/treerecs \
         --dupcost 2 --losscost 1 --output-without-description -f --quiet 2>&1

The cause of this error is that the name matching between the species tree and the gene tree is failing. However, I do not understand from the data you provided why this error is occurring. At least the gene tree appears to be outputting as expected.

Could you please provide the Amox_fastdtlmapper/00_user_data/tree/ folder where the species tree was output for further investigation?

from fastdtlmapper.

moshi4 avatar moshi4 commented on May 23, 2024

Please find the attached tree file.

Received email on 2022/09/06 19:34

Thank you for quick reply.

The error is probably due to the inclusion of '(single quotation) in the species tree.
Remove '(single quotation) from the species tree and try again, as in the following example.

((('species01', 'species02'), 'species03'), 'species04');

(((species01, species02), species03), species04);

from fastdtlmapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.