pyopenms-docs icon indicating copy to clipboard operation
pyopenms-docs copied to clipboard

Question

Open chulexuexibiedebushihewo opened this issue 1 year ago • 5 comments

image Hi! I want to obtain the sample name in the demand: how can I get the sample name? Thank you !

You can get the map index and then lookup the name of the file in the ConsensusMap object where this feature is coming from.

jpfeuffer avatar Jun 27 '24 11:06 jpfeuffer

tempmap = consensus_map[0].getFeatureList()[0]

I have already get the FeatureHandle, named "<pyopenms._pyopenms_3.FeatureHandle at 0x1202380a930>", how can I get the sample name of this FeatureHandle?

Hi! Roughly like this

sampleinfo = cmap.getColumnHeaders()
feat_filename = sampleinfo[featurehandle.getMapIdx()].filename

-- written on the phone

jpfeuffer avatar Jun 28 '24 09:06 jpfeuffer

image thank you ! i have resolved this issue. I have another question? Why there are some minus numbers in RT of ConsensusMap ?

This can happen during retention time alignment. Looks a bit extreme in your case, though.

jpfeuffer avatar Jun 28 '24 20:06 jpfeuffer

closing as resolved. Please feel free to re-open or create a new ticket.

cbielow avatar Feb 06 '25 14:02 cbielow