Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #439

Open
chulexuexibiedebushihewo opened this issue Jun 26, 2024 · 5 comments
Open

Question #439

chulexuexibiedebushihewo opened this issue Jun 26, 2024 · 5 comments

Comments

@chulexuexibiedebushihewo

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

@jpfeuffer
Copy link
Contributor

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

@chulexuexibiedebushihewo
Copy link
Author

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?

@jpfeuffer
Copy link
Contributor

Hi! Roughly like this

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

-- written on the phone

@chulexuexibiedebushihewo
Copy link
Author

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

@jpfeuffer
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants