meringlab / FlashWeave.jl

Inference of microbial interaction networks from large-scale heterogeneous abundance data
Other
74 stars 8 forks source link

metadata mapping by sample name #26

Open nick-youngblut opened 3 years ago

nick-youngblut commented 3 years ago

Although not explicit in the README, it appears that the metadata table must have the same sample order as the sample x feature table. For the sake of users who want to make sure that the correct samples are mapped to the correct metadata, it would be helpful to allow users to include a Sample column in the metadata table that will map the metadata to the correct sample in the sample x feature table.

jtackm commented 3 years ago

True, this should definitely be added to the README (I'm actually surprised it isn't). I was pondering to allow user-provided index columns, but didn't get around to implement it yet because there are a number of special cases to consider. Anyways, I agree it would be a good convenience feature.

nick-youngblut commented 3 years ago

Great! It would also be a good sanity check to make sure that the user has actually correctly ordered both tables.

Dalcon2704 commented 7 months ago

Since there is no information about this problem in the README yet. The problem have been fixed or you have to still sort the metadata?

jtackm commented 7 months ago

Yes, metadata still has to be aligned between OTU table and meta data table. I added a statement to the README now.