Skip to content

Commit

Permalink
Restore test data
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 31, 2024
1 parent 47b8802 commit fcefe02
Show file tree
Hide file tree
Showing 516 changed files with 4,639 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bids-validator/tests/data/bids-examples
Submodule bids-examples updated 567 files
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Name": "broken_brainvision_data",
"BIDSVersion": "1.1.1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*binary data*
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Brain Vision Data Exchange Header File Version 1.0
; manually created and inserted an error into DataFile field

[Common Infos]
Codepage=UTF-8
DataFile=sub-01_task-ERROR-test_eeg.eeg
MarkerFile=sub-01_task-test_eeg.vmrk
DataFormat=BINARY
Data orientation: MULTIPLEXED=ch1,pt1, ch2,pt1 ...
DataOrientation=MULTIPLEXED
NumberOfChannels=10
; Sampling interval in microseconds
SamplingInterval=200

[Binary Infos]
BinaryFormat=IEEE_FLOAT_32

[Channel Infos]
; Each entry: Ch<Channel number>=<Name>,<Reference channel name>,
; <Resolution in microvolts>,<Future extensions..
; Fields are delimited by commas, some fields might be omitted (empty).
; Commas in channel names are coded as "\1".
Ch1=FC5,,0.1
Ch2=FC1,,0.1
Ch3=C3,,0.1
Ch4=CP5,,0.1
Ch5=CP1,,0.1
Ch6=FC2,,0.1
Ch7=FC6,,0.1
Ch8=C4,,0.1
Ch9=CP2,,0.1
Ch10=CP6,,0.1

[Comment]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Brain Vision Data Exchange Marker File, Version 1.0
; manually created and inserted an error into DataFile field

[Common Infos]
Codepage=UTF-8
DataFile=sub-01_task-ERROR-test_eeg.eeg

[Marker Infos]
; Each entry: Mk<Marker number>=<Type>,<Description>,<Position in data points>,
; <Size in data points>, <Channel number (0 = marker is related to all channels)>
; Fields are delimited by commas, some fields might be omitted (empty).
; Commas in type or description text are coded as "\1".
Mk1=New Segment,,1,1,0,0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
onset duration
1 1
7 changes: 7 additions & 0 deletions bids-validator/tests/data/broken_pet_example_2-pet_mri/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This dataset consists of a single PET measurement of a human brain using [11C]DASB to measure serotonin transporter availability. An anatomical T1-weighted MRI is also available. There are no arterial measurements available for this tracer.

It has been broken for testing purposes. Changes made (in /sub-01/ses-01/pet/sub-01_ses-01_pet.json):

- Manufacturer set to a number (expecting string).
- InjectedMass removed (required).
- TracerMolecularWeightUnit removed (required when TracerMolecularWeight is set).
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"BIDSVersion": "1.0.2",
"License": "CCO license",
"Name": "[11C]DASB PET Cimbi database example",
"Authors": ["Melanie Ganz-Benjaminsen", "Martin Noergaard"],
"Acknowledgements": "Knudsen GM, Jensen PS, Erritzoe D, Baaré WFC, Ettrup A, Fisher PM, Gillings N, Hansen HD, Hansen LK, Hasselbalch SG, Henningsson S, Herth MM, Holst KK, Iversen P, Kessing LV, Macoveanu J, Madsen KS, Mortensen EL, Nielsen FÅ, Paulson OB, Siebner HR, Stenbæk DS, Svarer C, Jernigan TL, Strother SC, Frokjaer VG. The Center for Integrated Molecular Brain Imaging (Cimbi) Database. NeuroImage. 2016 Jan 1;124(Pt B):1213-1219",
"HowToAcknowledge": "This data was obtained from the Cimbi database.",
"Funding": [
"Lundbeck Foundation R90-A7722",
"Danish Research Council 09-063598",
"Rigshospitalet"
],
"DatasetDOI": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"participant_id": {
"LongName": "Participant Id",
"Description": "label identifying a particular subject"
},
"weight": {
"LongName": "Weight",
"Description": "Weight of the participant",
"Units": "kg"
},
"sex": {
"LongName": "Sex",
"Description": "Sex of the participant",
"Levels": {
"M": "male",
"F": "female"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
participant_id weight sex
sub-01 50 F
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"Modality": "MR",
"MagneticFieldStrength": 3,
"Manufacturer": "Siemens",
"ManufacturersModelName": "Trio",
"InstitutionName": "DRCMR_HVIDOVRE",
"InstitutionAddress": "30Kettegaard_Alle_Copenhagen_Hvidovre_DK-2650_DK",
"DeviceSerialNumber": "20511",
"StationName": "MRC20511",
"ProcedureStepDescription": "Hjerne_projekter_Cimbi_SAD",
"SoftwareVersions": "syngo_MR_A30_4VA30A",
"SeriesDescription": "t1_mpr_ns_sag_1mm_noring",
"ProtocolName": "t1_mpr_ns_sag_1mm_noring",
"ScanningSequence": "IR_GR",
"SequenceVariant": "SP_MP",
"ScanOptions": "IR",
"SequenceName": "_tfl3d1_ns",
"ImageType": ["ORIGINAL", "PRIMARY", "M", "ND"],
"AcquisitionTime": "10:24:59.860010",
"AcquisitionNumber": 1,
"ImageComments": "50524",
"EchoTime": 0.00304,
"RepetitionTime": 1.55,
"InversionTime": 0.8,
"FlipAngle": 9,
"PartialFourier": 1,
"BaseResolution": 256,
"PhaseResolution": 1,
"ReceiveCoilName": "8_Channel_Head",
"PulseSequenceDetails": "%SiemensSeq%_tfl",
"PercentPhaseFOV": 100,
"PhaseEncodingSteps": 256,
"AcquisitionMatrixPE": 256,
"ReconMatrixPE": 256,
"ConversionSoftware": "dcm2niix",
"ConversionSoftwareVersion": "v1.0.20170923 (OpenJPEG build) GCC4.8.4"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"Modality": "PET",
"Manufacturer": 1234,
"ManufacturersModelName": "High-Resolution Research Tomograph (HRRT, CTI/Siemens)",
"BodyPart": "Brain",
"Units": "Bq/ml",
"TracerName": "DASB",
"TracerRadionuclide": "C11",
"TracerMolecularWeight": 282.39,
"InjectedRadioactivity": 598,
"InjectedRadioactivityUnits": "MBq",
"InjectedMassUnits": "ug",
"SpecificRadioactivity": 842.25,
"SpecificRadioactivityUnits": "MBq/ug",
"MolarActivity": 238.23,
"MolarActivityUnits": "GBq/umol",
"TimeZero": "13:06:34",
"ScanStart": 0,
"InjectionStart": 0,
"ModeOfAdministration": "bolus",
"FrameTimesStart": [
0, 10, 20, 30, 40, 50, 60, 80, 100, 120, 150, 180, 210, 240, 270, 300, 360,
420, 480, 540, 600, 720, 840, 960, 1080, 1200, 1500, 1800, 2100, 4521, 4800,
5100
],
"FrameDuration": [
10, 20, 30, 40, 50, 60, 80, 100, 120, 150, 180, 210, 240, 270, 300, 360,
420, 480, 540, 600, 720, 840, 960, 1080, 1200, 1500, 1800, 2100, 2337, 4800,
5100, 5400
],
"AcquisitionMode": "list mode",
"ImageDecayCorrected": true,
"ImageDecayCorrectionTime": 0,
"ReconMatrixSize": [256, 256, 207, 36],
"ImageVoxelSize": [1.2188, 1.2188, 1.2188],
"ReconMethodName": "3D-OSEM-PSF",
"ReconMethodParameterLabels": ["subsets", "iterations"],
"ReconMethodParameterUnits": ["none", "none"],
"ReconMethodParameterValues": [16, 10],
"ReconFilterType": "none",
"ReconFilterSize": 0,
"AttenuationCorrection": "[137Cs]transmission scan-based"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This dataset consists of a single PET measurement of a human brain using [11C]DASB to measure serotonin transporter availability. An anatomical T1-weighted MRI is also available. There are arterial measurements available for this tracer. Note: all image files are empty for privacy reasons.

IMPORTANT: The molar activity is fixed for all subjects (55 MBq/nmol) given Parsey et al. 2007.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"BIDSVersion": "1.0.4",
"License": "CCO license",
"Name": "[11C]DASB data set",
"Authors": ["Martin Norgaard", "Christine Delorenzo", "Ramin Parsey"],
"Acknowledgements": "We thank the employees of the Brain Imaging Core of the NIMH-funded Conte Translational Neuroscience Center, the Kreitchman PET Center, and the Columbia University Radioligand Laboratory for expert help. This work was supported in part by an investigator-initiated grant from Pfizer Inc.",
"HowToAcknowledge": "Ramin Parsey, Christine Delorenzo",
"DatasetDOI": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"participant_id": {
"LongName": "Participant Id",
"Description": "label identifying a particular subject"
},
"sex": {
"LongName": "Sex"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
participant_id sex
sub-01 F
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"Manufacturer": "Siemens",
"ManufacturersModelName": "Siemens HR+",
"BodyPart": "Brain",
"Units": "Bq/mL",
"TracerName": "DASB",
"TracerRadionuclide": "C11",
"TracerMolecularWeight": 282.39,
"TracerMolecularWeightUnits": "g/mol",
"TracerInjectionType": "bolus",
"InjectedRadioactivity": 694.86,
"InjectedRadioactivityUnits": "MBq",
"InjectedMass": 3.57,
"InjectedMassUnits": "ug",
"SpecificRadioactivity": 194.64,
"SpecificRadioactivityUnits": "MBq/ug",
"MolarActivity": 55,
"MolarActivityUnits": "MBq/nmol",
"ModeOfAdministration": "bolus",
"ScanStart": 0,
"InjectionStart": 0,
"InjectionEnd": 30,
"TimeZero": "12:24:37",
"FrameTimesStart": [
0, 20, 40, 60, 120, 180, 240, 360, 480, 600, 900, 1200, 1800, 2400, 3000,
3600, 4200, 4800, 5400, 6000, 6600
],
"FrameDuration": [
20, 40, 60, 120, 180, 240, 360, 480, 600, 900, 1200, 1800, 2400, 3000, 3600,
4200, 4800, 5400, 6000, 6600, 7200
],
"AcquisitionMode": "list mode",
"ImageDecayCorrected": true,
"ImageDecayCorrectionTime": 0,
"ReconMethodName": "Vendor",
"ReconMethodParameterLabels": ["Zoom factor"],
"ReconMethodParameterUnits": ["none"],
"ReconMethodParameterValues": [4],
"ReconFilterType": [
"Image filter were Shepp 0.5",
"the Z filter was all-pass 0.4"
],
"ReconFilterSize": [2.5, 2.0],
"AttenuationCorrection": "Transmission data, and scatter was corrected using a model-based method",
"AttenuationCorrectionMethodReference": "Parsey et al. 2006, Metabolite considerations in the in vivo quantification of serotonin transporters using 11C-DASB and PET in humans, Journal of Nuclear Medicine"
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"PlasmaAvail": true,
"MetaboliteAvail": true,
"MetaboliteMethod": "Bioscan g-detector",
"MetaboliteRecoveryCorrectionApplied": false,
"DispersionCorrected": false,
"time": {
"Description": "Time in relation to time zero defined by the _pet.json",
"Units": "s"
},
"plasma_radioactivity": {
"Description": "Radioactivity in plasma samples",
"Units": "Bq/ml"
},
"metabolite_parent_fraction": {
"Description": "Parent fraction of the radiotracer. The metabolite and unmetabolized parent compound were collected in separate vials, and radioactivity was quantified using a Bioscan g-detector after correction for background radioactivity.",
"Units": "unitless"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
time plasma_radioactivity metabolite_parent_fraction
0 0 n/a
10.0000002 22.62883 n/a
19.9999998 57.2612 n/a
30 1836.01696 n/a
40.002 14344.6921 n/a
49.998 23636.8654 n/a
60 31688.6211 n/a
70.002 33226.4655 n/a
79.998 26847.9352 n/a
90 20327.9066 n/a
100.002 17169.8248 n/a
109.998 15198.5614 n/a
120 14509.6888 0.50774032
139.998 13080.8694 n/a
160.002 11937.2848 n/a
180 11422.8402 n/a
199.998 10905.5509 n/a
220.002 10870.4076 n/a
240 16745.3205 n/a
360 8193.32255 n/a
480 9180.87697 n/a
720 8957.52869 0.55283186
960 8500.14505 n/a
1200 8846.04732 0.35144152
1800 8805.56451 n/a
2400 8707.26365 n/a
3000 9078.7899 0.1507185
3600 8356.09036 n/a
4800 8095.22519 0.10388412
5400 7480.43763 n/a
6000 7099.9559 0.09530672
7200 6279.54565 n/a
15 changes: 15 additions & 0 deletions bids-validator/tests/data/citation/bad.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: My Research Software
abstract: This is my awesome research software. It does many things.
version: 0.11.2
date-released: "2021-07-18"
identifiers:
- description: This is the collection of archived snapshots of all versions of My Research Software
type: doi
value: "10.5281/zenodo.123456"
- description: This is the archived snapshot of version 0.11.2 of My Research Software
type: doi
value: "10.5281/zenodo.123457"
license: Apache-2.0
repository-code: "https://github.com/citation-file-format/my-research-software"
20 changes: 20 additions & 0 deletions bids-validator/tests/data/citation/good.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: My Research Software
abstract: This is my awesome research software. It does many things.
authors:
- family-names: Druskat
given-names: Stephan
orcid: "https://orcid.org/1234-5678-9101-1121"
- name: "The Research Software project"
version: 0.11.2
date-released: "2021-07-18"
identifiers:
- description: This is the collection of archived snapshots of all versions of My Research Software
type: doi
value: "10.5281/zenodo.123456"
- description: This is the archived snapshot of version 0.11.2 of My Research Software
type: doi
value: "10.5281/zenodo.123457"
license: Apache-2.0
repository-code: "https://github.com/citation-file-format/my-research-software"
Loading

0 comments on commit fcefe02

Please sign in to comment.