Code Monkey home page Code Monkey logo

Comments (8)

ChaoLab avatar ChaoLab commented on August 15, 2024 1

Hi,
You will need to provide the gtdb-tk result for the downstream visualization steps. Maybe you can suppress gtdb-tk and just make a folder named "gtdbtk_Genome_files" with self-made mocked gtdb-tk taxonomy files.

The gtdb-tk tax files that METABOLIC will use:
../../intermediate_files/gtdbtk_Genome_files/gtdbtk.bac120.summary.tsv
../../intermediate_files/gtdbtk_Genome_files/gtdbtk.ar122.summary.tsv

from metabolic.

tenguzame avatar tenguzame commented on August 15, 2024 1

Hi, You will need to provide the gtdb-tk result for the downstream visualization steps. Maybe you can suppress gtdb-tk and just make a folder named "gtdbtk_Genome_files" with self-made mocked gtdb-tk taxonomy files.

The gtdb-tk tax files that METABOLIC will use: ../../intermediate_files/gtdbtk_Genome_files/gtdbtk.bac120.summary.tsv ../../intermediate_files/gtdbtk_Genome_files/gtdbtk.ar122.summary.tsv

Thank you for your quick response! So, I could do the following: 1) run METABOLIC-C with the genomes I need; 2) add the taxonomic inferences to the intermediate files; 3) re-run METABOLIC-C. Would it be correct?

from metabolic.

tenguzame avatar tenguzame commented on August 15, 2024 1

Hey, thanks for the information. I fixed a couple of issues with the dependencies (which weren't fully installed) and managed to reproduce the summary files: in this way, METABOLIC-C manages to produce much of its outputs. However, since the first run didn't produce one specific PDF file (a "network.plot.pdf") as an output on energy analysis, and the second run specifically appears to look for it, I'll try to do a new first run (which now would likely end still better) and then add the taxonomic output prior to the second run. Fingers crossed!

from metabolic.

tenguzame avatar tenguzame commented on August 15, 2024 1

Just an update: the first step in the pipeline was completed but, as expected, it complained about the lack of genome taxonomy information. Again, as the final metabolic network appears to need the taxonomic information, it was not produced. Thus, I'm experimenting with its code (I have no coding knowledge, though): I'm commenting out the GTDBtk step and substituting the related input files with the ones I already have generated. If it works, I'm done. I guess it can be turned into some kind of flag to be added, something like
-taxinfo - how to carry out taxonomic inference: "gtdb" (default) to run the main GTDBtk annotation, "own" to provide your own -taxinfo_path - when using -taxinfo "own" , declare the /path/to/taxonomic/input - GTDB-like format

from metabolic.

ChaoLab avatar ChaoLab commented on August 15, 2024

Yes, when you do the re-run (step 3 as you listed), you can use this script: "https://github.com/AnantharamanLab/METABOLIC/blob/master/METABOLIC-C.2nd_run.pl".
See the instruction here: https://github.com/AnantharamanLab/METABOLIC/wiki/METABOLIC-Usage#a-2nd-metabolic-c-run

from metabolic.

ChaoLab avatar ChaoLab commented on August 15, 2024

Hi, you can use conda to install all the dependencies in a much easier way (will be fully installed):
https://github.com/AnantharamanLab/METABOLIC/wiki/Installation#-quick-installation

from metabolic.

tenguzame avatar tenguzame commented on August 15, 2024

I know, thank you, that's the way I installed it. However, a couple of Perl dependencies were not installed and this was leading to errors. Now I fixed it following the thread from which the quick Conda installation came.

from metabolic.

patriciatran avatar patriciatran commented on August 15, 2024

Hi @tenguzame ,
Are you trying to draw the network diagram with the nodes and colors? (Just making sure I understand your issue) (Functional Network slide here):

If so, you can run the following Rscript on its own in the terminal without having to run any METABOLIC-C steps.
Rscript draw_functional_network_diagram.R [path to energy flow input] [name of output folder]

Make sure you have the full path to draw_functional_network_diagram.R if needed. and that these Rpackages are installed:
library(ggraph)
library(igraph)
library(tidyverse)
library(tidygraph)

The energy flow input looks something like this. It's a 5 column text file, tab separated. Would changing the column "Taxonomic" column to your own annotations help solve your issue?

Energy_flow_input.txt

Edit: If you want to use your own genome coverage values (let's say METABOLIC-C doesn't work or you prefer to use another mapping method than bowtie2, you'd need to change the values in the column "Coverage value(average)" accordingly as well.

from metabolic.

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.