From cecile.madjar at mcin.ca Fri Oct 1 16:51:38 2021 From: cecile.madjar at mcin.ca (Cecile Madjar) Date: Fri, 1 Oct 2021 16:51:38 -0400 Subject: [Loris-dev] BIDS - AcquisitionType In-Reply-To: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> References: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> Message-ID: Hi Alfredo, I found the line of code that set the scan type to the BIDS suffix in LORIS-MRI: https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 In line 278, nifti_file.get_entities() will return T1w for files that are named according to BIDS sub-xxx_ses-xxx__.nii.gz. In your case, the suffix is T1w, which is what is being used to determine a scan type. I don't know what t1c or t1g refers to but I am guessing that some of the information is available elsewhere in the filename or the JSON file to determine what is what? In which case, you could modify line 279 so that the scan_type is determined based on the criteria you wish to use. Does that make sense? Hope this helps, C?cile On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo < AMORALESPINZON at bwh.harvard.edu> wrote: > Hi C?cile, > > We would like to improve the acquisition type assigned in LORIS for some > images that we had uploaded into LORIS for two BIDS datasets. For instance > we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some > parameters. Is it possible? could you guide me on how can I do this change > in LORIS? I?m happy to write some sql scripts if needed. > > Best, > Alfredo. > > On Aug 17, 2021, at 9:04 AM, Cecile Madjar wrote: > > External Email - Use Caution > > Hi Alfredo, > > I just verified the BIDS specification. The modality (aka acquisition > type) is the last component of the file name, so in the case of the MT0 > T2w, the t2w acquisition type is correct. What is stored behind the acq- > string are actually acquisition parameters not the acquisition type per se. > > If you really want to add the acq prefix to the scan type, you could > always modify this line of code > so > that it also takes the acq prefix when looking for a scan type? > > C?cile > > On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo < > AMORALESPINZON at bwh.harvard.edu> wrote: > >> Dear LorisDev team, >> >> I have a question regarding the AcquisitionType assigned to images >> imported using the BIDS functionality: how do you assign the >> AcquisitionType? >> >> For some cases it looks good, but some it doesn?t match the ?acq? label >> in BIDS: >> >> Example of correct acquisition type: >> === >> { >> "OutputType": "native", >> "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", >> "AcquisitionType": "T1w" >> } >> === >> >> Example of wrong acquisition type, in this case it should be MT0. >> === >> { >> "OutputType": "native", >> "Filename": "sub-BGK104001_ses-month36_acq-MT0 >> _run-1_T2w.nii.gz", >> "AcquisitionType": "t2w" >> }, >> === >> >> Would it be possible to modify the way the acquisition types are being >> assigned so that it takes the ?acq? label from BIDS? >> >> Thank you for your help. >> >> Best regards, >> Alfredo. >> The information in this e-mail is intended only for the person to whom it >> is addressed. If you believe this e-mail was sent to you in error and the >> e-mail contains patient information, please contact the Mass General >> Brigham Compliance HelpLine at >> http://www.massgeneralbrigham.org/complianceline >> >> . If the e-mail was sent to you in error but does not contain patient >> information, please contact the sender and properly dispose of the e-mail. >> >> Please note that this e-mail is not secure (encrypted). If you do not >> wish to continue communication over unencrypted e-mail, please notify the >> sender of this message immediately. Continuing to send or respond to >> e-mail after receiving this message means you understand and accept this >> risk and wish to continue to communicate over unencrypted e-mail. >> _______________________________________________ >> Loris-dev mailing list >> Loris-dev at bic.mni.mcgill.ca >> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev >> >> > > The information in this e-mail is intended only for the person to whom it > is addressed. If you believe this e-mail was sent to you in error and the > e-mail contains patient information, please contact the Mass General > Brigham Compliance HelpLine at > http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent > to you in error but does not contain patient information, please contact > the sender and properly dispose of the e-mail. > > Please note that this e-mail is not secure (encrypted). If you do not > wish to continue communication over unencrypted e-mail, please notify the > sender of this message immediately. Continuing to send or respond to > e-mail after receiving this message means you understand and accept this > risk and wish to continue to communicate over unencrypted e-mail. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From AMORALESPINZON at BWH.HARVARD.EDU Mon Oct 4 13:28:43 2021 From: AMORALESPINZON at BWH.HARVARD.EDU (Morales Pinzon, Alfredo) Date: Mon, 4 Oct 2021 17:28:43 +0000 Subject: [Loris-dev] BIDS - AcquisitionType In-Reply-To: References: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> Message-ID: <32C3B4E3-E9A8-409C-8B6D-EF35E2794DB3@bwh.harvard.edu> Hi C?cile, Thank you for the explanation, I will use this solution for a future dataset. Right now, I have already uploaded the datasets, and would like to change the scan type for some of the images. For instance I need to some T1w to t1g, which is a T1 with gadolinium. Can I change directly the AcquisitionProtocolID for the files in the database for the right one? Best, Alfredo. On Oct 1, 2021, at 4:51 PM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I found the line of code that set the scan type to the BIDS suffix in LORIS-MRI: https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 In line 278, nifti_file.get_entities() will return T1w for files that are named according to BIDS sub-xxx_ses-xxx__.nii.gz. In your case, the suffix is T1w, which is what is being used to determine a scan type. I don't know what t1c or t1g refers to but I am guessing that some of the information is available elsewhere in the filename or the JSON file to determine what is what? In which case, you could modify line 279 so that the scan_type is determined based on the criteria you wish to use. Does that make sense? Hope this helps, C?cile On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo > wrote: Hi C?cile, We would like to improve the acquisition type assigned in LORIS for some images that we had uploaded into LORIS for two BIDS datasets. For instance we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some parameters. Is it possible? could you guide me on how can I do this change in LORIS? I?m happy to write some sql scripts if needed. Best, Alfredo. On Aug 17, 2021, at 9:04 AM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I just verified the BIDS specification. The modality (aka acquisition type) is the last component of the file name, so in the case of the MT0 T2w, the t2w acquisition type is correct. What is stored behind the acq- string are actually acquisition parameters not the acquisition type per se. If you really want to add the acq prefix to the scan type, you could always modify this line of code so that it also takes the acq prefix when looking for a scan type? C?cile On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo > wrote: Dear LorisDev team, I have a question regarding the AcquisitionType assigned to images imported using the BIDS functionality: how do you assign the AcquisitionType? For some cases it looks good, but some it doesn?t match the ?acq? label in BIDS: Example of correct acquisition type: === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", "AcquisitionType": "T1w" } === Example of wrong acquisition type, in this case it should be MT0. === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_acq-MT0_run-1_T2w.nii.gz", "AcquisitionType": "t2w" }, === Would it be possible to modify the way the acquisition types are being assigned so that it takes the ?acq? label from BIDS? Thank you for your help. Best regards, Alfredo. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. _______________________________________________ Loris-dev mailing list Loris-dev at bic.mni.mcgill.ca https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cecile.madjar at mcin.ca Mon Oct 4 14:03:27 2021 From: cecile.madjar at mcin.ca (Cecile Madjar) Date: Mon, 4 Oct 2021 14:03:27 -0400 Subject: [Loris-dev] BIDS - AcquisitionType In-Reply-To: <32C3B4E3-E9A8-409C-8B6D-EF35E2794DB3@bwh.harvard.edu> References: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> <32C3B4E3-E9A8-409C-8B6D-EF35E2794DB3@bwh.harvard.edu> Message-ID: Hi Alfredo, Indeed, you could change the AcquisitionProtoolID in the files table so that it points to the t1g scan type. C?cile On Mon, Oct 4, 2021 at 1:28 PM Morales Pinzon, Alfredo < AMORALESPINZON at bwh.harvard.edu> wrote: > Hi C?cile, > > Thank you for the explanation, I will use this solution for a future > dataset. > > Right now, I have already uploaded the datasets, and would like to change > the scan type for some of the images. For instance I need to some T1w to > t1g, which is a T1 with gadolinium. Can I change directly the > AcquisitionProtocolID for the files in the database for the right one? > > Best, > Alfredo. > > On Oct 1, 2021, at 4:51 PM, Cecile Madjar wrote: > > External Email - Use Caution > > Hi Alfredo, > > I found the line of code that set the scan type to the BIDS suffix in > LORIS-MRI: > https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 > > > > In line 278, nifti_file.get_entities() will return T1w for files that are > named according to BIDS > sub-xxx_ses-xxx__.nii.gz. In your case, the > suffix is T1w, which is what is being used to determine a scan type. > > I don't know what t1c or t1g refers to but I am guessing that some of the > information is available elsewhere in the filename or the JSON file > to determine what is what? In which case, you could modify line 279 so that > the scan_type is determined based on the criteria you wish to use. > > Does that make sense? > > Hope this helps, > > C?cile > > On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo < > AMORALESPINZON at bwh.harvard.edu> wrote: > >> Hi C?cile, >> >> We would like to improve the acquisition type assigned in LORIS for some >> images that we had uploaded into LORIS for two BIDS datasets. For instance >> we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some >> parameters. Is it possible? could you guide me on how can I do this change >> in LORIS? I?m happy to write some sql scripts if needed. >> >> Best, >> Alfredo. >> >> On Aug 17, 2021, at 9:04 AM, Cecile Madjar wrote: >> >> External Email - Use Caution >> >> Hi Alfredo, >> >> I just verified the BIDS specification. The modality (aka acquisition >> type) is the last component of the file name, so in the case of the MT0 >> T2w, the t2w acquisition type is correct. What is stored behind the acq- >> string are actually acquisition parameters not the acquisition type per se. >> >> If you really want to add the acq prefix to the scan type, you could >> always modify this line of code >> so >> that it also takes the acq prefix when looking for a scan type? >> >> C?cile >> >> On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo < >> AMORALESPINZON at bwh.harvard.edu> wrote: >> >>> Dear LorisDev team, >>> >>> I have a question regarding the AcquisitionType assigned to images >>> imported using the BIDS functionality: how do you assign the >>> AcquisitionType? >>> >>> For some cases it looks good, but some it doesn?t match the ?acq? label >>> in BIDS: >>> >>> Example of correct acquisition type: >>> === >>> { >>> "OutputType": "native", >>> "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", >>> "AcquisitionType": "T1w" >>> } >>> === >>> >>> Example of wrong acquisition type, in this case it should be MT0. >>> === >>> { >>> "OutputType": "native", >>> "Filename": "sub-BGK104001_ses-month36_acq-MT0 >>> _run-1_T2w.nii.gz", >>> "AcquisitionType": "t2w" >>> }, >>> === >>> >>> Would it be possible to modify the way the acquisition types are being >>> assigned so that it takes the ?acq? label from BIDS? >>> >>> Thank you for your help. >>> >>> Best regards, >>> Alfredo. >>> The information in this e-mail is intended only for the person to whom >>> it is addressed. If you believe this e-mail was sent to you in error and >>> the e-mail contains patient information, please contact the Mass General >>> Brigham Compliance HelpLine at >>> http://www.massgeneralbrigham.org/complianceline >>> >>> . If the e-mail was sent to you in error but does not contain patient >>> information, please contact the sender and properly dispose of the e-mail. >>> >>> Please note that this e-mail is not secure (encrypted). If you do not >>> wish to continue communication over unencrypted e-mail, please notify the >>> sender of this message immediately. Continuing to send or respond to >>> e-mail after receiving this message means you understand and accept this >>> risk and wish to continue to communicate over unencrypted e-mail. >>> _______________________________________________ >>> Loris-dev mailing list >>> Loris-dev at bic.mni.mcgill.ca >>> https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev >>> >>> >> >> The information in this e-mail is intended only for the person to whom it >> is addressed. If you believe this e-mail was sent to you in error and the >> e-mail contains patient information, please contact the Mass General >> Brigham Compliance HelpLine at >> http://www.massgeneralbrigham.org/complianceline >> >> . If the e-mail was sent to you in error but does not contain patient >> information, please contact the sender and properly dispose of the e-mail. >> >> Please note that this e-mail is not secure (encrypted). If you do not >> wish to continue communication over unencrypted e-mail, please notify the >> sender of this message immediately. Continuing to send or respond to >> e-mail after receiving this message means you understand and accept this >> risk and wish to continue to communicate over unencrypted e-mail. >> > > The information in this e-mail is intended only for the person to whom it > is addressed. If you believe this e-mail was sent to you in error and the > e-mail contains patient information, please contact the Mass General > Brigham Compliance HelpLine at > http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent > to you in error but does not contain patient information, please contact > the sender and properly dispose of the e-mail. > > Please note that this e-mail is not secure (encrypted). If you do not > wish to continue communication over unencrypted e-mail, please notify the > sender of this message immediately. Continuing to send or respond to > e-mail after receiving this message means you understand and accept this > risk and wish to continue to communicate over unencrypted e-mail. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridar.narayanan at mcgill.ca Mon Oct 4 14:30:05 2021 From: sridar.narayanan at mcgill.ca (Sridar Narayanan, Dr.) Date: Mon, 4 Oct 2021 18:30:05 +0000 Subject: [Loris-dev] BIDS - AcquisitionType In-Reply-To: References: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> <32C3B4E3-E9A8-409C-8B6D-EF35E2794DB3@bwh.harvard.edu> Message-ID: Hi C?cile, Thanks for answering Alfredo?s questions. I have a couple of additional questions. 1. In studies where the primary image upload is done in DICOM, LORIS automatically converts and links a copy of each image volume in MINC. Can it do the same thing when the primary image upload is in BIDS format? 2. If not, could we convert the BIDS/NIFTI files into MINC and upload them, or will this conflict with the existing NIFTI files? 3. Can the primary image upload be in MINC format? Up to now, we have only uploaded MINC files for secondary data (e.g. masks). 4. When data are uploaded as DICOM, the generated MINC files seem to have a standardized structure, STUDY_DCCID_VisitLabel_scantype_counter.mnc, (e.g. IPMSA_609372_w24_pdw_001.mnc). Is that a LORIS feature or Pisti, did you organize the input tar files with that naming structure? The BIDS NIFTI files do not have a standardized structure, which breaks downstream processing pipelines. Thanks, Sridar From: Cecile Madjar Date: Monday, October 4, 2021 at 2:03 PM To: "Morales Pinzon, Alfredo" Cc: "loris-dev at bic.mni.mcgill.ca" , Rozie Arnaoutelis , "Sridar Narayanan, Dr." , "Douglas Arnold, Dr." , "Guttmann Charles,M.D." , Istv?n ?kos M?rocz Subject: Re: [Loris-dev] BIDS - AcquisitionType Hi Alfredo, Indeed, you could change the AcquisitionProtoolID in the files table so that it points to the t1g scan type. C?cile On Mon, Oct 4, 2021 at 1:28 PM Morales Pinzon, Alfredo > wrote: Hi C?cile, Thank you for the explanation, I will use this solution for a future dataset. Right now, I have already uploaded the datasets, and would like to change the scan type for some of the images. For instance I need to some T1w to t1g, which is a T1 with gadolinium. Can I change directly the AcquisitionProtocolID for the files in the database for the right one? Best, Alfredo. On Oct 1, 2021, at 4:51 PM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I found the line of code that set the scan type to the BIDS suffix in LORIS-MRI: https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 In line 278, nifti_file.get_entities() will return T1w for files that are named according to BIDS sub-xxx_ses-xxx__.nii.gz. In your case, the suffix is T1w, which is what is being used to determine a scan type. I don't know what t1c or t1g refers to but I am guessing that some of the information is available elsewhere in the filename or the JSON file to determine what is what? In which case, you could modify line 279 so that the scan_type is determined based on the criteria you wish to use. Does that make sense? Hope this helps, C?cile On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo > wrote: Hi C?cile, We would like to improve the acquisition type assigned in LORIS for some images that we had uploaded into LORIS for two BIDS datasets. For instance we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some parameters. Is it possible? could you guide me on how can I do this change in LORIS? I?m happy to write some sql scripts if needed. Best, Alfredo. On Aug 17, 2021, at 9:04 AM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I just verified the BIDS specification. The modality (aka acquisition type) is the last component of the file name, so in the case of the MT0 T2w, the t2w acquisition type is correct. What is stored behind the acq- string are actually acquisition parameters not the acquisition type per se. If you really want to add the acq prefix to the scan type, you could always modify this line of code so that it also takes the acq prefix when looking for a scan type? C?cile On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo > wrote: Dear LorisDev team, I have a question regarding the AcquisitionType assigned to images imported using the BIDS functionality: how do you assign the AcquisitionType? For some cases it looks good, but some it doesn?t match the ?acq? label in BIDS: Example of correct acquisition type: === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", "AcquisitionType": "T1w" } === Example of wrong acquisition type, in this case it should be MT0. === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_acq-MT0_run-1_T2w.nii.gz", "AcquisitionType": "t2w" }, === Would it be possible to modify the way the acquisition types are being assigned so that it takes the ?acq? label from BIDS? Thank you for your help. Best regards, Alfredo. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. _______________________________________________ Loris-dev mailing list Loris-dev at bic.mni.mcgill.ca https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cecile.madjar at mcin.ca Mon Oct 4 15:15:18 2021 From: cecile.madjar at mcin.ca (Cecile Madjar) Date: Mon, 4 Oct 2021 15:15:18 -0400 Subject: [Loris-dev] BIDS - AcquisitionType In-Reply-To: References: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> <32C3B4E3-E9A8-409C-8B6D-EF35E2794DB3@bwh.harvard.edu> Message-ID: Hi Sridar, Happy to help :-). Below are my answers to your questions: > > 1. In studies where the primary image upload is done in DICOM, LORIS > automatically converts and links a copy of each image volume in MINC. Can > it do the same thing when the primary image upload is in BIDS format? > > In the future, yes. I am actually developing a dcm2bids pipeline in my spare time. I have made a lot of progress on this this summer but this is not ready yet unfortunately. My deadline for this is this spring but I really hope to have that ready sooner!! Maybe a little Christmas gift? ;-) In the meantime however, outside of the standard imaging_upload_file.pl pipeline, we have a script called imaging_non_minc_insertion.pl that allows the insertion of NIfTI files along with a JSON sidecar file into LORIS. So the pipeline could be tweaked to: 1) run dicom_archive/dicomTar.pl (instead of uploadNeuroDB/ imaging_upload_file.pl) to create the DICOM archives 2) create a tiny script to untar the DICOM archives and run dcm2niix (for example to create the BIDS JSON sidecar along with the NIfTI file) on the DICOMs. 3) run uploadNeuroDB/imaging_non_minc_insertion.pl on the NIfTI and JSON files that were created with dcm2niix (or other converter equivalent). Note: this imaging_non_minc_insertion.pl can be run on any file types other than MINC as long as the proper options are provided to the script so that LORIS knows to which candidate and visit the file should be attached and with which scan type. > > 1. > 2. If not, could we convert the BIDS/NIFTI files into MINC and upload > them, or will this conflict with the existing NIFTI files? > > I am not entirely sure to understand the question. You would want to do dcm2nii and then nii2mnc? Note: if there is already a file in the files table with the same SeriesUID/EchoTime combination, then an error will be issued saying a scan has already been inserted with the same SeriesUID/EchoTime combination. We had to add the EchoTime field because we noticed that SeriesUID was not unique for fieldmaps... > > 1. > 2. Can the primary image upload be in MINC format? Up to now, we have > only uploaded MINC files for secondary data (e.g. masks). > > Yes, the script uploadNeuroDB/minc_insertion.pl can be called independently to insert a MINC file directly. The script options are listed when you run it with option -help > > 1. > 2. When data are uploaded as DICOM, the generated MINC files seem to > have a standardized structure, STUDY_DCCID_VisitLabel_scantype_counter.mnc, > (e.g. IPMSA_609372_w24_pdw_001.mnc). Is that a LORIS feature or *Pisti*, > did you organize the input tar files with that naming structure? The BIDS > NIFTI files do not have a standardized structure, which breaks downstream > processing pipelines. > > The STUDY_DCCID_VisitLabel_scan_type_counter.mnc is a LORIS convention for the MINC files. The DICOMs are not organized under that naming structure though because the processes run on the DICOM do not do candidate ID checks and other validations on the DICOMs. This is done on the MINC/NIfTI level only. However, in the tarchive_series and tarchive_files tables there is a list of files with their SeriesUID and EchoTime so it can be easy to figure out with database queries which DICOM files correspond to the inserted MINC file. Hope this helps! Let me know if you have any further questions. > Thanks, > > > > Sridar > > > > > > *From: *Cecile Madjar > *Date: *Monday, October 4, 2021 at 2:03 PM > *To: *"Morales Pinzon, Alfredo" > *Cc: *"loris-dev at bic.mni.mcgill.ca" , Rozie > Arnaoutelis , "Sridar Narayanan, Dr." < > sridar.narayanan at mcgill.ca>, "Douglas Arnold, Dr." < > douglas.arnold at mcgill.ca>, "Guttmann Charles,M.D." < > guttmann at bwh.harvard.edu>, Istv?n ?kos M?rocz > *Subject: *Re: [Loris-dev] BIDS - AcquisitionType > > > > Hi Alfredo, > > > > Indeed, you could change the AcquisitionProtoolID in the files table so > that it points to the t1g scan type. > > > > C?cile > > > > On Mon, Oct 4, 2021 at 1:28 PM Morales Pinzon, Alfredo < > AMORALESPINZON at bwh.harvard.edu> wrote: > > Hi C?cile, > > > > Thank you for the explanation, I will use this solution for a future > dataset. > > > > Right now, I have already uploaded the datasets, and would like to change > the scan type for some of the images. For instance I need to some T1w to > t1g, which is a T1 with gadolinium. Can I change directly the > AcquisitionProtocolID for the files in the database for the right one? > > > > Best, > > Alfredo. > > > > On Oct 1, 2021, at 4:51 PM, Cecile Madjar wrote: > > > > * External Email - Use Caution * > > > > Hi Alfredo, > > > > I found the line of code that set the scan type to the BIDS suffix in > LORIS-MRI: > https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 > > > > > > In line 278, nifti_file.get_entities() will return T1w for files that are > named according to BIDS > sub-xxx_ses-xxx__.nii.gz. In your case, the > suffix is T1w, which is what is being used to determine a scan type. > > > > I don't know what t1c or t1g refers to but I am guessing that some of the > information is available elsewhere in the filename or the JSON file > to determine what is what? In which case, you could modify line 279 so that > the scan_type is determined based on the criteria you wish to use. > > > > Does that make sense? > > > > Hope this helps, > > > > C?cile > > > > On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo < > AMORALESPINZON at bwh.harvard.edu> wrote: > > Hi C?cile, > > > > We would like to improve the acquisition type assigned in LORIS for some > images that we had uploaded into LORIS for two BIDS datasets. For instance > we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some > parameters. Is it possible? could you guide me on how can I do this change > in LORIS? I?m happy to write some sql scripts if needed. > > > > Best, > > Alfredo. > > > > On Aug 17, 2021, at 9:04 AM, Cecile Madjar wrote: > > > > * External Email - Use Caution * > > > > Hi Alfredo, > > > > I just verified the BIDS specification. The modality (aka acquisition > type) is the last component of the file name, so in the case of the MT0 > T2w, the t2w acquisition type is correct. What is stored behind the acq- > string are actually acquisition parameters not the acquisition type per se. > > > > If you really want to add the acq prefix to the scan type, you could > always modify this line of code > so > that it also takes the acq prefix when looking for a scan type? > > > > C?cile > > > > On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo < > AMORALESPINZON at bwh.harvard.edu> wrote: > > Dear LorisDev team, > > > > I have a question regarding the AcquisitionType assigned to images > imported using the BIDS functionality: how do you assign the > AcquisitionType? > > > > For some cases it looks good, but some it doesn?t match the ?acq? label in > BIDS: > > > > Example of correct acquisition type: > > === > > { > > "OutputType": "native", > > "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", > > "AcquisitionType": "T1w" > > } > > === > > > > Example of wrong acquisition type, in this case it should be MT0. > > === > > { > > "OutputType": "native", > > "Filename": "sub-BGK104001_ses-month36_acq-MT0 > _run-1_T2w.nii.gz", > > "AcquisitionType": "t2w" > > }, > > === > > > > Would it be possible to modify the way the acquisition types are being > assigned so that it takes the ?acq? label from BIDS? > > > > Thank you for your help. > > > > Best regards, > > Alfredo. > > The information in this e-mail is intended only for the person to whom it > is addressed. If you believe this e-mail was sent to you in error and the > e-mail contains patient information, please contact the Mass General > Brigham Compliance HelpLine at > http://www.massgeneralbrigham.org/complianceline > > . If the e-mail was sent to you in error but does not contain patient > information, please contact the sender and properly dispose of the e-mail. > > > > Please note that this e-mail is not secure (encrypted). If you do not > wish to continue communication over unencrypted e-mail, please notify the > sender of this message immediately. Continuing to send or respond to > e-mail after receiving this message means you understand and accept this > risk and wish to continue to communicate over unencrypted e-mail. > > _______________________________________________ > Loris-dev mailing list > Loris-dev at bic.mni.mcgill.ca > https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev > > > > > The information in this e-mail is intended only for the person to whom it > is addressed. If you believe this e-mail was sent to you in error and the > e-mail contains patient information, please contact the Mass General > Brigham Compliance HelpLine at > http://www.massgeneralbrigham.org/complianceline > > . If the e-mail was sent to you in error but does not contain patient > information, please contact the sender and properly dispose of the e-mail. > > > > Please note that this e-mail is not secure (encrypted). If you do not > wish to continue communication over unencrypted e-mail, please notify the > sender of this message immediately. Continuing to send or respond to > e-mail after receiving this message means you understand and accept this > risk and wish to continue to communicate over unencrypted e-mail. > > > > The information in this e-mail is intended only for the person to whom it > is addressed. If you believe this e-mail was sent to you in error and the > e-mail contains patient information, please contact the Mass General > Brigham Compliance HelpLine at > http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent > to you in error but does not contain patient information, please contact > the sender and properly dispose of the e-mail. > > > > Please note that this e-mail is not secure (encrypted). If you do not > wish to continue communication over unencrypted e-mail, please notify the > sender of this message immediately. Continuing to send or respond to > e-mail after receiving this message means you understand and accept this > risk and wish to continue to communicate over unencrypted e-mail. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridar.narayanan at mcgill.ca Mon Oct 4 15:23:54 2021 From: sridar.narayanan at mcgill.ca (Sridar Narayanan, Dr.) Date: Mon, 4 Oct 2021 19:23:54 +0000 Subject: [Loris-dev] BIDS - AcquisitionType In-Reply-To: References: <1431DEE0-4FC7-4B06-8EB5-BEDEF0A0E19B@bwh.harvard.edu> <32C3B4E3-E9A8-409C-8B6D-EF35E2794DB3@bwh.harvard.edu> Message-ID: <7668F919-3239-4F4C-9933-74DAF521DB29@mcgill.ca> Hi Cecile, Thanks, this is helpful. I think one important fact that you may not be aware of for this study (or may have forgotten) is that we only have BIDS data as our ?original? data. We don?t have access to the original DICOM files. Would you be available to join a Zoom discussion we are having right now? https://mcgill.zoom.us/j/85419914478?pwd=d0I1S2NKNUhBcmZKRURvZTRkN1Bvdz09 Thanks, Sridar From: Cecile Madjar Date: Monday, October 4, 2021 at 3:15 PM To: "Sridar Narayanan, Dr." Cc: "Morales Pinzon, Alfredo" , "loris-dev at bic.mni.mcgill.ca" , Rozie Arnaoutelis , "Douglas Arnold, Dr." , "Guttmann Charles,M.D." , Istv?n ?kos M?rocz Subject: Re: [Loris-dev] BIDS - AcquisitionType Hi Sridar, Happy to help :-). Below are my answers to your questions: 1. In studies where the primary image upload is done in DICOM, LORIS automatically converts and links a copy of each image volume in MINC. Can it do the same thing when the primary image upload is in BIDS format? In the future, yes. I am actually developing a dcm2bids pipeline in my spare time. I have made a lot of progress on this this summer but this is not ready yet unfortunately. My deadline for this is this spring but I really hope to have that ready sooner!! Maybe a little Christmas gift? ;-) In the meantime however, outside of the standard imaging_upload_file.pl pipeline, we have a script called imaging_non_minc_insertion.pl that allows the insertion of NIfTI files along with a JSON sidecar file into LORIS. So the pipeline could be tweaked to: 1) run dicom_archive/dicomTar.pl (instead of uploadNeuroDB/imaging_upload_file.pl) to create the DICOM archives 2) create a tiny script to untar the DICOM archives and run dcm2niix (for example to create the BIDS JSON sidecar along with the NIfTI file) on the DICOMs. 3) run uploadNeuroDB/imaging_non_minc_insertion.pl on the NIfTI and JSON files that were created with dcm2niix (or other converter equivalent). Note: this imaging_non_minc_insertion.pl can be run on any file types other than MINC as long as the proper options are provided to the script so that LORIS knows to which candidate and visit the file should be attached and with which scan type. 1. 2. If not, could we convert the BIDS/NIFTI files into MINC and upload them, or will this conflict with the existing NIFTI files? I am not entirely sure to understand the question. You would want to do dcm2nii and then nii2mnc? Note: if there is already a file in the files table with the same SeriesUID/EchoTime combination, then an error will be issued saying a scan has already been inserted with the same SeriesUID/EchoTime combination. We had to add the EchoTime field because we noticed that SeriesUID was not unique for fieldmaps... 1. 2. Can the primary image upload be in MINC format? Up to now, we have only uploaded MINC files for secondary data (e.g. masks). Yes, the script uploadNeuroDB/minc_insertion.pl can be called independently to insert a MINC file directly. The script options are listed when you run it with option -help 1. 2. When data are uploaded as DICOM, the generated MINC files seem to have a standardized structure, STUDY_DCCID_VisitLabel_scantype_counter.mnc, (e.g. IPMSA_609372_w24_pdw_001.mnc). Is that a LORIS feature or Pisti, did you organize the input tar files with that naming structure? The BIDS NIFTI files do not have a standardized structure, which breaks downstream processing pipelines. The STUDY_DCCID_VisitLabel_scan_type_counter.mnc is a LORIS convention for the MINC files. The DICOMs are not organized under that naming structure though because the processes run on the DICOM do not do candidate ID checks and other validations on the DICOMs. This is done on the MINC/NIfTI level only. However, in the tarchive_series and tarchive_files tables there is a list of files with their SeriesUID and EchoTime so it can be easy to figure out with database queries which DICOM files correspond to the inserted MINC file. Hope this helps! Let me know if you have any further questions. Thanks, Sridar From: Cecile Madjar > Date: Monday, October 4, 2021 at 2:03 PM To: "Morales Pinzon, Alfredo" > Cc: "loris-dev at bic.mni.mcgill.ca" >, Rozie Arnaoutelis >, "Sridar Narayanan, Dr." >, "Douglas Arnold, Dr." >, "Guttmann Charles,M.D." >, Istv?n ?kos M?rocz > Subject: Re: [Loris-dev] BIDS - AcquisitionType Hi Alfredo, Indeed, you could change the AcquisitionProtoolID in the files table so that it points to the t1g scan type. C?cile On Mon, Oct 4, 2021 at 1:28 PM Morales Pinzon, Alfredo > wrote: Hi C?cile, Thank you for the explanation, I will use this solution for a future dataset. Right now, I have already uploaded the datasets, and would like to change the scan type for some of the images. For instance I need to some T1w to t1g, which is a T1 with gadolinium. Can I change directly the AcquisitionProtocolID for the files in the database for the right one? Best, Alfredo. On Oct 1, 2021, at 4:51 PM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I found the line of code that set the scan type to the BIDS suffix in LORIS-MRI: https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 In line 278, nifti_file.get_entities() will return T1w for files that are named according to BIDS sub-xxx_ses-xxx__.nii.gz. In your case, the suffix is T1w, which is what is being used to determine a scan type. I don't know what t1c or t1g refers to but I am guessing that some of the information is available elsewhere in the filename or the JSON file to determine what is what? In which case, you could modify line 279 so that the scan_type is determined based on the criteria you wish to use. Does that make sense? Hope this helps, C?cile On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo > wrote: Hi C?cile, We would like to improve the acquisition type assigned in LORIS for some images that we had uploaded into LORIS for two BIDS datasets. For instance we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some parameters. Is it possible? could you guide me on how can I do this change in LORIS? I?m happy to write some sql scripts if needed. Best, Alfredo. On Aug 17, 2021, at 9:04 AM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I just verified the BIDS specification. The modality (aka acquisition type) is the last component of the file name, so in the case of the MT0 T2w, the t2w acquisition type is correct. What is stored behind the acq- string are actually acquisition parameters not the acquisition type per se. If you really want to add the acq prefix to the scan type, you could always modify this line of code so that it also takes the acq prefix when looking for a scan type? C?cile On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo > wrote: Dear LorisDev team, I have a question regarding the AcquisitionType assigned to images imported using the BIDS functionality: how do you assign the AcquisitionType? For some cases it looks good, but some it doesn?t match the ?acq? label in BIDS: Example of correct acquisition type: === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", "AcquisitionType": "T1w" } === Example of wrong acquisition type, in this case it should be MT0. === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_acq-MT0_run-1_T2w.nii.gz", "AcquisitionType": "t2w" }, === Would it be possible to modify the way the acquisition types are being assigned so that it takes the ?acq? label from BIDS? Thank you for your help. Best regards, Alfredo. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. _______________________________________________ Loris-dev mailing list Loris-dev at bic.mni.mcgill.ca https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridar.narayanan at mcgill.ca Tue Oct 12 11:49:03 2021 From: sridar.narayanan at mcgill.ca (Sridar Narayanan, Dr.) Date: Tue, 12 Oct 2021 15:49:03 +0000 Subject: [Loris-dev] BIDS - AcquisitionType & MINC conversion Message-ID: Hi Cecile, I hope you had a good weekend. We were wondering whether you had discussed with Samir whether you would be able to devote some time to implementing a BIDS/Nifti to MINC converter within LORIS? Thanks, Sridar From: "Sridar Narayanan, Dr." Date: Monday, October 4, 2021 at 3:23 PM To: Cecile Madjar Cc: "Morales Pinzon, Alfredo" , "loris-dev at bic.mni.mcgill.ca" , Rozie Arnaoutelis , "Douglas Arnold, Dr." , "Guttmann Charles,M.D." , Istv?n ?kos M?rocz Subject: Re: [Loris-dev] BIDS - AcquisitionType Hi Cecile, Thanks, this is helpful. I think one important fact that you may not be aware of for this study (or may have forgotten) is that we only have BIDS data as our ?original? data. We don?t have access to the original DICOM files. Would you be available to join a Zoom discussion we are having right now? https://mcgill.zoom.us/j/85419914478?pwd=d0I1S2NKNUhBcmZKRURvZTRkN1Bvdz09 Thanks, Sridar From: Cecile Madjar Date: Monday, October 4, 2021 at 3:15 PM To: "Sridar Narayanan, Dr." Cc: "Morales Pinzon, Alfredo" , "loris-dev at bic.mni.mcgill.ca" , Rozie Arnaoutelis , "Douglas Arnold, Dr." , "Guttmann Charles,M.D." , Istv?n ?kos M?rocz Subject: Re: [Loris-dev] BIDS - AcquisitionType Hi Sridar, Happy to help :-). Below are my answers to your questions: 1. In studies where the primary image upload is done in DICOM, LORIS automatically converts and links a copy of each image volume in MINC. Can it do the same thing when the primary image upload is in BIDS format? In the future, yes. I am actually developing a dcm2bids pipeline in my spare time. I have made a lot of progress on this this summer but this is not ready yet unfortunately. My deadline for this is this spring but I really hope to have that ready sooner!! Maybe a little Christmas gift? ;-) In the meantime however, outside of the standard imaging_upload_file.pl pipeline, we have a script called imaging_non_minc_insertion.pl that allows the insertion of NIfTI files along with a JSON sidecar file into LORIS. So the pipeline could be tweaked to: 1) run dicom_archive/dicomTar.pl (instead of uploadNeuroDB/imaging_upload_file.pl) to create the DICOM archives 2) create a tiny script to untar the DICOM archives and run dcm2niix (for example to create the BIDS JSON sidecar along with the NIfTI file) on the DICOMs. 3) run uploadNeuroDB/imaging_non_minc_insertion.pl on the NIfTI and JSON files that were created with dcm2niix (or other converter equivalent). Note: this imaging_non_minc_insertion.pl can be run on any file types other than MINC as long as the proper options are provided to the script so that LORIS knows to which candidate and visit the file should be attached and with which scan type. 1. 2. If not, could we convert the BIDS/NIFTI files into MINC and upload them, or will this conflict with the existing NIFTI files? I am not entirely sure to understand the question. You would want to do dcm2nii and then nii2mnc? Note: if there is already a file in the files table with the same SeriesUID/EchoTime combination, then an error will be issued saying a scan has already been inserted with the same SeriesUID/EchoTime combination. We had to add the EchoTime field because we noticed that SeriesUID was not unique for fieldmaps... 1. 2. Can the primary image upload be in MINC format? Up to now, we have only uploaded MINC files for secondary data (e.g. masks). Yes, the script uploadNeuroDB/minc_insertion.pl can be called independently to insert a MINC file directly. The script options are listed when you run it with option -help 1. 2. When data are uploaded as DICOM, the generated MINC files seem to have a standardized structure, STUDY_DCCID_VisitLabel_scantype_counter.mnc, (e.g. IPMSA_609372_w24_pdw_001.mnc). Is that a LORIS feature or Pisti, did you organize the input tar files with that naming structure? The BIDS NIFTI files do not have a standardized structure, which breaks downstream processing pipelines. The STUDY_DCCID_VisitLabel_scan_type_counter.mnc is a LORIS convention for the MINC files. The DICOMs are not organized under that naming structure though because the processes run on the DICOM do not do candidate ID checks and other validations on the DICOMs. This is done on the MINC/NIfTI level only. However, in the tarchive_series and tarchive_files tables there is a list of files with their SeriesUID and EchoTime so it can be easy to figure out with database queries which DICOM files correspond to the inserted MINC file. Hope this helps! Let me know if you have any further questions. Thanks, Sridar From: Cecile Madjar > Date: Monday, October 4, 2021 at 2:03 PM To: "Morales Pinzon, Alfredo" > Cc: "loris-dev at bic.mni.mcgill.ca" >, Rozie Arnaoutelis >, "Sridar Narayanan, Dr." >, "Douglas Arnold, Dr." >, "Guttmann Charles,M.D." >, Istv?n ?kos M?rocz > Subject: Re: [Loris-dev] BIDS - AcquisitionType Hi Alfredo, Indeed, you could change the AcquisitionProtoolID in the files table so that it points to the t1g scan type. C?cile On Mon, Oct 4, 2021 at 1:28 PM Morales Pinzon, Alfredo > wrote: Hi C?cile, Thank you for the explanation, I will use this solution for a future dataset. Right now, I have already uploaded the datasets, and would like to change the scan type for some of the images. For instance I need to some T1w to t1g, which is a T1 with gadolinium. Can I change directly the AcquisitionProtocolID for the files in the database for the right one? Best, Alfredo. On Oct 1, 2021, at 4:51 PM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I found the line of code that set the scan type to the BIDS suffix in LORIS-MRI: https://github.com/aces/Loris-MRI/blob/c69c89d0c64838e4a174b4a267a1406ce724878a/python/lib/mri.py#L279 In line 278, nifti_file.get_entities() will return T1w for files that are named according to BIDS sub-xxx_ses-xxx__.nii.gz. In your case, the suffix is T1w, which is what is being used to determine a scan type. I don't know what t1c or t1g refers to but I am guessing that some of the information is available elsewhere in the filename or the JSON file to determine what is what? In which case, you could modify line 279 so that the scan_type is determined based on the criteria you wish to use. Does that make sense? Hope this helps, C?cile On Thu, Sep 30, 2021 at 10:57 AM Morales Pinzon, Alfredo > wrote: Hi C?cile, We would like to improve the acquisition type assigned in LORIS for some images that we had uploaded into LORIS for two BIDS datasets. For instance we would like to change some ?T1w" to ?t1c" or ?t1g", depending on some parameters. Is it possible? could you guide me on how can I do this change in LORIS? I?m happy to write some sql scripts if needed. Best, Alfredo. On Aug 17, 2021, at 9:04 AM, Cecile Madjar > wrote: External Email - Use Caution Hi Alfredo, I just verified the BIDS specification. The modality (aka acquisition type) is the last component of the file name, so in the case of the MT0 T2w, the t2w acquisition type is correct. What is stored behind the acq- string are actually acquisition parameters not the acquisition type per se. If you really want to add the acq prefix to the scan type, you could always modify this line of code so that it also takes the acq prefix when looking for a scan type? C?cile On Mon, Aug 16, 2021 at 3:51 PM Morales Pinzon, Alfredo > wrote: Dear LorisDev team, I have a question regarding the AcquisitionType assigned to images imported using the BIDS functionality: how do you assign the AcquisitionType? For some cases it looks good, but some it doesn?t match the ?acq? label in BIDS: Example of correct acquisition type: === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_run-2_T1w.nii.gz", "AcquisitionType": "T1w" } === Example of wrong acquisition type, in this case it should be MT0. === { "OutputType": "native", "Filename": "sub-BGK104001_ses-month36_acq-MT0_run-1_T2w.nii.gz", "AcquisitionType": "t2w" }, === Would it be possible to modify the way the acquisition types are being assigned so that it takes the ?acq? label from BIDS? Thank you for your help. Best regards, Alfredo. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. _______________________________________________ Loris-dev mailing list Loris-dev at bic.mni.mcgill.ca https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at http://www.massgeneralbrigham.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mndmazaheri at gmail.com Wed Oct 20 17:00:32 2021 From: mndmazaheri at gmail.com (mandana mazaheri) Date: Wed, 20 Oct 2021 14:00:32 -0700 Subject: [Loris-dev] what is loris url? Message-ID: Dear LORIS team, I am installing LORIS DEV and need to what exactly is the and to access /installdb.php? Best Mandana -------------- next part -------------- An HTML attachment was scrubbed... URL: From rida.abou-haidar at mcin.ca Wed Oct 20 20:01:14 2021 From: rida.abou-haidar at mcin.ca (Rida Abou-Haidar) Date: Wed, 20 Oct 2021 20:01:14 -0400 Subject: [Loris-dev] what is loris url? In-Reply-To: References: Message-ID: Hi Mandana, Have you been added to the slack channel ? If ao send me a message there and we will go through this. Best, Rida Abou-Haidar Software Developer Montreal Neurological Institute McGill University rida.abou-haidar at mcin.ca On Wed., Oct. 20, 2021, 5:01 p.m. mandana mazaheri wrote: > Dear LORIS team, > > I am installing LORIS DEV and need to what exactly is the and > to access /installdb.php? > > Best > Mandana > _______________________________________________ > Loris-dev mailing list > Loris-dev at bic.mni.mcgill.ca > https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.macfarlane at mcin.ca Thu Oct 21 09:02:50 2021 From: dave.macfarlane at mcin.ca (Dave MacFarlane) Date: Thu, 21 Oct 2021 09:02:50 -0400 Subject: [Loris-dev] what is loris url? In-Reply-To: References: Message-ID: Hi Mandana, Where are you seeing those terms? "" in the LORIS README refers to the URL that you use to access your LORIS web server but I don't see "front-end-loris-url" used. On Wed, Oct 20, 2021 at 5:01 PM mandana mazaheri wrote: > Dear LORIS team, > > I am installing LORIS DEV and need to what exactly is the and > to access /installdb.php? > > Best > Mandana > _______________________________________________ > Loris-dev mailing list > Loris-dev at bic.mni.mcgill.ca > https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Yiwen.Tian at nki.rfmh.org Wed Oct 27 14:11:59 2021 From: Yiwen.Tian at nki.rfmh.org (Tian, Yiwen (NKI)) Date: Wed, 27 Oct 2021 18:11:59 +0000 Subject: [Loris-dev] Installing Email Server Message-ID: Hi LorisDev Team, I wonder if you have a guide for installing a email server that works with loris frontend? I wasn't able to find anything online. Anything helps! Thank you! Best, Yiwen ________________________________ IMPORTANT NOTICE: This e-mail is meant only for the use of the intended recipient. It may contain confidential information which is legally privileged or otherwise protected by law. If you received this e-mail in error or from someone who was not authorized to send it to you, you are strictly prohibited from reviewing, using, disseminating, distributing or copying the e-mail. PLEASE NOTIFY US IMMEDIATELY OF THE ERROR BY RETURN E-MAIL AND DELETE THIS MESSAGE FROM YOUR SYSTEM. Thank you for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From melanie.legault2 at mcgill.ca Wed Oct 27 14:27:06 2021 From: melanie.legault2 at mcgill.ca (Melanie Legault, Mrs) Date: Wed, 27 Oct 2021 18:27:06 +0000 Subject: [Loris-dev] Installing Email Server In-Reply-To: References: Message-ID: Hello Yimen, I suggest you to contact your local IT team. They surely already have a mail server that you can use. If you do wish to install your own mail server, there is the venerable SendMail or the excellent Exim mail server that you can use. You will find lots of information on how to set them up on the web. Having your own mail server will add lot of burden on your shoulder as not only another piece of software to manage but also take care of the spam, security, regular update, ... Kind regards, M?lanie ________________________________ From: loris-dev-bounces at bic.mni.mcgill.ca on behalf of Tian, Yiwen (NKI) Sent: October 27, 2021 14:11 To: loris-dev at bic.mni.mcgill.ca Subject: [Loris-dev] Installing Email Server Hi LorisDev Team, I wonder if you have a guide for installing a email server that works with loris frontend? I wasn't able to find anything online. Anything helps! Thank you! Best, Yiwen ________________________________ IMPORTANT NOTICE: This e-mail is meant only for the use of the intended recipient. It may contain confidential information which is legally privileged or otherwise protected by law. If you received this e-mail in error or from someone who was not authorized to send it to you, you are strictly prohibited from reviewing, using, disseminating, distributing or copying the e-mail. PLEASE NOTIFY US IMMEDIATELY OF THE ERROR BY RETURN E-MAIL AND DELETE THIS MESSAGE FROM YOUR SYSTEM. Thank you for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mndmazaheri at gmail.com Fri Oct 29 19:12:19 2021 From: mndmazaheri at gmail.com (mandana mazaheri) Date: Fri, 29 Oct 2021 16:12:19 -0700 Subject: [Loris-dev] failed uploading through imaging Uploader module Message-ID: Hi LorisDev Team, I am trying to upload a compressed file (zip) through Imaging Uploader in the LORIS frontend, but I get the following error message, could you assist me with how I should proceed? [image: image.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 81566 bytes Desc: not available URL: