CAFE5 icon indicating copy to clipboard operation
CAFE5 copied to clipboard

There are only three columns in Base_family_results.txt

Open Edison2021 opened this issue 4 years ago • 3 comments

Hi Ben In my base_family_results.txt, there are only three columns showing #FamilyID, pvalue and Significant at 0.05. Other columns such as ’c’ (constant), ’i’ (increasing), or ’d’ (decreasing) at nodes are missing.

My command is cafexp -i gene_families.txt -t tree.txt.

Any suggestions are appreciated!

Edison

Edison2021 avatar Apr 04 '20 12:04 Edison2021

As shown by the code, only three-column result is supported now.

void reconstruction::print_increases_decreases_by_family(std::ostream& ost, const cladevector& order, familyvector& gene_families, const std::vector<double>& pvalues, double test_pvalue) {
    if (gene_families.size() != pvalues.size())
    {
        throw std::runtime_error("No pvalues found for family");
    }
    if (gene_families.empty())
    {
        ost << "No increases or decreases recorded\n";
        return;
    }

    ost << "#FamilyID\tpvalue\tSignificant at " << test_pvalue << "\n";

    for (size_t i = 0; i < gene_families.size(); ++i) {
        ost << gene_families[i].id() << '\t' << pvalues[i] << '\t';
        ost << (pvalues[i] < test_pvalue ? 'y' : 'n');
        ost << endl;
    }
}

Tong-Chen avatar May 06 '20 02:05 Tong-Chen

Yes, the increases and decreases were dropped, but can be calculated from some of the other output files. Did you find the c-i-d columns particularly helpful?

benfulton avatar May 06 '20 13:05 benfulton

Hi Ben I think these c-i-d columns are helpful. Could you please add them back?

Edison

Edison2021 avatar May 07 '20 04:05 Edison2021

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Nov 09 '22 03:11 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 24 '22 02:11 github-actions[bot]