Robin,
Based on those scan types, I’m assuming you’re dealing with MR here. That looks like you’re doing a search on the Subject datatype and then joining the MR Session datatype, right? I think you can do everything you need with just the MR Session datatype. Try this:
1. Do an Advanced Search with MR Sessions as the pivot. On step 3, select your desired projects.
2. The search results should include a “Scans” column. Click the column header, and add a “LIKE” filter with “MP_RAGE_64” value, then click “More…” and repeat for your other scan type. Note that things like “MP_RAGE_64foobar” will probably also match this. If that’s a dealbreaker, then this entire approach probably won’t work.
3. At this point you should have only the sessions in your desired list of projects with at least one of those scan types. If you click Options > Spreadsheet at this point in the table, you should get a CSV representation of the table.
a. Note that you will get a row for every session, not every subject. Is that desired/OK?
b. Age should be an included column, but if you don’t want any of the columns in your spreadsheet, you can click any of the column headers and click “Hide Column”.
4. Finally, when you click Options > Download, it should take you to the download page with only your filtered sessions in the list to download. You can then select the scan types you wanted on that page and get your data.
Thanks,
Charlie
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/849fc158-02ba-43b4-9cbc-d3de48703ca3%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/849fc158-02ba-43b4-9cbc-d3de48703ca3%40googlegroups.com.
Robin,
I think the “_” is being interpreted by some regex along the way as a control/wildcard character when you intend it as a literal. Try putting a backslash in front of it (i.e. “\_1” and “\_S1”). That seemed to work for me on my development environment.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/6bd9b2a4-6dd2-49fb-8b3e-3d0df7a9b3cf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/6bd9b2a4-6dd2-49fb-8b3e-3d0df7a9b3cf%40googlegroups.com.
Robin,
Hmm, I have a method that might work depending on how strict your requirements are. Trying a search at the subject level with MR Sessions specified as “detailed” in the additional data types section will give you one row per subject, but:
1. I’m not sure what determines which session gets included in the join when a subject has >1 session in the system.
2. Because the base data type is for subjects, you won’t get the Options > Download link.
Snag #2 here is an annoyance, but snag #1 is the potentially fatal one. If the join happens to work exactly by taking the first session (note: first by upload date or by study date?), or if you’re fine taking an arbitrary session from each subject, then we’ve passed the fatal snag. If not… I’m not sure how to do this. It might be possible with a very fancy custom search XML, but I don’t know for sure.
The hacky part to actually get to the download from here would be:
1. Filter to whatever subset of subjects you actually wanted.
2. Hide every column in the table except for the one corresponding to the session label. Note that if the session labels aren’t unique sidewide, it would be better to use the actual session IDs, rather than the labels (e.g. XNAT_EXXXXX). I think you can add the column for ID instead of the label.
3. Download a spreadsheet of these session labels/IDs (Options > Spreadsheet).
4. Go to the XNAT index page (the page you land on after logging in).
a. Find the “MR” tab in the middle of the page.
b. Click the “Search by Exact IDs” option.
c. Select “SESSION ID”.
d. Paste the contents of the CSV, without the “Label” header
5. Hopefully you should now be on a search result table with the sessions specified from before, so Options > Download should take you to the download page as before.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/dec7940f-9e85-41b9-91d2-df6988e2e49d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/dec7940f-9e85-41b9-91d2-df6988e2e49d%40googlegroups.com.
Robin,
I’ll see if I can get someone else with detailed knowledge of the joins in here to respond. However, I think the answer is unfortunately that this ClinicalData and MR Sessions are siblings in the experiment hierarchy, so trying to match between them by date or age isn’t something that XNAT even has any sort of concept for.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/fe3bdcc2-a710-47b0-bdad-74b11a9dc153%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/fe3bdcc2-a710-47b0-bdad-74b11a9dc153%40googlegroups.com.
Hi Robin,
It sounds like for this search, you’re searching in only 1 project, and you want the results (labels, etc.) to reflect the context of that project, right? I think it will probably do what you want if you bring up the project page itself and filter on the MR Sessions and/or Subjects table at the bottom. I believe those should be using the identifiers for the project page that you’re on. Give that a try and see if that addresses the issue.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/87a29068-3282-49a8-946b-29d378df6b9a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/87a29068-3282-49a8-946b-29d378df6b9a%40googlegroups.com.
Robin,
Unless I’m misunderstanding, I think it behaves the same way as the site-level search. If you started at the Subject level and joined MR sessions to it, you won’t get the Download link since you have to start at the session level for that option to appear. Can you do a similar search by clicking on the “MR Sessions” tab in that table? (if it’s not available, there should be a dropdown to add listings for datatypes in that table).
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/b01af01f-8290-48d1-8e67-1a496190a442%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/b01af01f-8290-48d1-8e67-1a496190a442%40googlegroups.com.