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

Request help for pattern file creation #8

Open
BlakneyG opened this issue Sep 14, 2021 · 3 comments
Open

Request help for pattern file creation #8

BlakneyG opened this issue Sep 14, 2021 · 3 comments

Comments

@BlakneyG
Copy link

I am trying to finish a pipeline that takes data collected on a combined Thermo Velos, Spectroglyph source, and Predator data station based acquisition into imzML. I am currently at the point where I have a Spectroglyph position file in XML and a mzML file from msconvert. I pulled the command list from the command line and that plus observation from other questions here, I have an idea about how to handle the syntax except for the -p command. Is there any guidance on how I can mimic an established file starting with an XML position file?

An outgoing research member left a small trial data set from a previous workflow. I will attach files from this test XML and an image to show the X-Y pattern that I hope to create. The actual images would of course contain many additional pixels. This work would provide a straight forward path for the users of the National FT-ICR MS User Facility to process their high resolution data imaging when combined with DataCubeExplorer and other imzML associated tools.

Thanks in advance,
Greg Blakney

pos3sPredatorSmall_positionFile.xml.txt
testPattern

@AlanRace
Copy link
Owner

Hi Greg,
Sorry for the delay. The -p command expects a text file that is formatted like so (imzML expects coordinates to start at (1,1)):

1 1 1
2 1 1
3 1 1

where each line describes the coordinate (x, y, z) for scans in the mzML file in the order in which they appear. To skip a scan (if this is necessary) you can do (skipping the second scan:

1 1 1
-1 -1 -1
2 1 1

So I guess the quickest way to get up and running would be to write a script that parses the XML file and outputs a .txt file with the above format.

Perhaps a better (but longer term) solution would be to allow your XML file format as input in the -p command. I'm not sure whether this is something you (or your group) would be interested in contributing?

Alan

@BlakneyG
Copy link
Author

BlakneyG commented Sep 22, 2021 via email

@AlanRace
Copy link
Owner

AlanRace commented Sep 23, 2021 via email

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

No branches or pull requests

2 participants