You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for this really helpful package!
I converted the KO IDs to the KEGG IDs using the "ko2kegg_abundance" function because I'm more interested on KEGG IDs.
For this reason, I'd like to retrieve the functional annotation of these IDs. I used the "pathway_annotation" to collect the annotation of KO IDs, but the same function doesn't work using an input file with KEGG IDs (the same that I got from the "ko2kegg_abundance" function). Is there a way to obtain annotations on KEGG IDs? I know that the differential abundance analysis would help me to gain the functional annotation of the KEGG IDs, however I'm more interesed on all the KEGG IDs.
Thank you again for your support!
The text was updated successfully, but these errors were encountered:
Thank you for your interest in ggpicrust2! Based on the code in pathway_annotation.R and ko2kegg_abundance.R, I can suggest a solution for obtaining KEGG pathway annotations:
Direct Annotation Method
# Convert your KO abundance to KEGG pathway abundancekegg_abundance<- ko2kegg_abundance(file="your_file.tsv")
# Create a data frame with your KEGG IDskegg_ids_df<-data.frame(
feature= rownames(kegg_abundance),
p_adjust=1# Dummy value to meet function requirements
)
# Get KEGG annotationskegg_annotations<- pathway_annotation(
daa_results_df=kegg_ids_df,
pathway="KO",
ko_to_kegg=TRUE
)
Alternative Approach Using Internal Functions
# If you already have KEGG IDskegg_ids<- rownames(kegg_abundance)
# Create a data frame with required columnskegg_df<-data.frame(
feature=kegg_ids,
p_adjust=1, # Dummy valuestringsAsFactors=FALSE
)
# Process KEGG annotationsannotated_df<- process_kegg_annotations(kegg_df)
Hi there,
First of all, thank you for this really helpful package!
I converted the KO IDs to the KEGG IDs using the "ko2kegg_abundance" function because I'm more interested on KEGG IDs.
For this reason, I'd like to retrieve the functional annotation of these IDs. I used the "pathway_annotation" to collect the annotation of KO IDs, but the same function doesn't work using an input file with KEGG IDs (the same that I got from the "ko2kegg_abundance" function). Is there a way to obtain annotations on KEGG IDs? I know that the differential abundance analysis would help me to gain the functional annotation of the KEGG IDs, however I'm more interesed on all the KEGG IDs.
Thank you again for your support!
The text was updated successfully, but these errors were encountered: