bids-standard / bids-validator

Validator for the Brain Imaging Data Structure
https://bids-standard.github.io/bids-validator/
MIT License
185 stars 111 forks source link

(code: 55 - JSON_SCHEMA_VALIDATION_ERROR) #1104

Closed jasongong11 closed 3 years ago

jasongong11 commented 3 years ago

Hi, I met with this error: 1: [ERR] Invalid JSON file. The file is not formatted according the schema. (code: 55 - JSON_SCHEMA_VALIDATION_ERROR) ./sub-005/func/sub-005_task-game_run-01_bold.json Evidence: .CogAtlasID should match format "uri"

But there is no .CogAtlasID in my json file.

here is the json file: { "AcquisitionMatrixPE": 120, "AcquisitionNumber": 1, "AcquisitionTime": "11:35:46.767500", "BandwidthPerPixelPhaseEncode": 14.368, "BaseResolution": 120, "BodyPartExamined": "BRAIN", "ConsistencyInfo": "N4_VE11C_LATEST_20160120", "ConversionSoftware": "dcm2niix", "ConversionSoftwareVersion": "v1.0.20190410 GCC6.3.0", "DerivedVendorReportedEchoSpacing": 0.000579993, "DeviceSerialNumber": "167002", "DwellTime": 2e-06, "EchoTime": 0.028, "EchoTrainLength": 90, "EffectiveEchoSpacing": 0.000579993, "FlipAngle": 60, "ImageComments": "Unaliased_MB3_PE3", "ImageOrientationPatientDICOM": [0.997154, 0.0744459, 0.0119389, -0.0732264, 0.993949, -0.0818724], "ImageType": [ "ORIGINAL", "PRIMARY", "M", "MB", "ND", "NORM", "MOSAIC" ], "ImagingFrequency": 123.248, "InPlanePhaseEncodingDirectionDICOM": "COL", "InstitutionAddress": "Neil_Ave_1835_Columbus_Ohio_US_43210", "InstitutionName": "CCBBI", "InstitutionalDepartmentName": "Psychology", "MRAcquisitionType": "2D", "MagneticFieldStrength": 3, "Manufacturer": "Siemens", "ManufacturersModelName": "Prisma_fit", "Modality": "MR", "MultibandAccelerationFactor": 3, "PartialFourier": 0.75, "PatientPosition": "HFS", "PercentPhaseFOV": 100, "PhaseEncodingDirection": "j-", "PhaseEncodingSteps": 90, "PhaseResolution": 1, "PixelBandwidth": 2085, "ProcedureStepDescription": "SequenceRegion_Huskey", "ProtocolName": "run1", "PulseSequenceDetails": "%CustomerSeq%_cmrr_mbep2d_bold", "ReceiveCoilActiveElements": "HEA;HEP", "ReceiveCoilName": "Head_32", "ReconMatrixPE": 120, "RepetitionTime": 2, "SAR": 0.0307647, "ScanOptions": "PFP_FS", "ScanningSequence": "EP", "SequenceName": "epfid2d1_120", "SequenceVariant": "SK_SS", "SeriesDescription": "run1", "SeriesNumber": 16, "ShimSetting": [-59, -6182, 2274, 402, 18, -83, 92, -1], "SliceThickness": 2, "SliceTiming": [0, 0.9075, 1.815, 0.7425, 1.65, 0.5775, 1.485, 0.4125, 1.32, 0.2475, 1.155, 0.0825, 0.99, 1.8975, 0.825, 1.7325, 0.66, 1.5675, 0.495, 1.4025, 0.33, 1.2375, 0.165, 1.0725, 0, 0.9075, 1.815, 0.7425, 1.65, 0.5775, 1.485, 0.4125, 1.32, 0.2475, 1.155, 0.0825, 0.99, 1.8975, 0.825, 1.7325, 0.66, 1.5675, 0.495, 1.4025, 0.33, 1.2375, 0.165, 1.0725, 0, 0.9075, 1.815, 0.7425, 1.65, 0.5775, 1.485, 0.4125, 1.32, 0.2475, 1.155, 0.0825, 0.99, 1.8975, 0.825, 1.7325, 0.66, 1.5675, 0.495, 1.4025, 0.33, 1.2375, 0.165, 1.0725], "SoftwareVersions": "syngo_MR_E11", "SpacingBetweenSlices": 2, "StationName": "AWP167002", "TaskName": "game", "TotalReadoutTime": 0.0690191, "TxRefAmp": 262.349, "WipMemBlock": "3157f47b-3fd7-4ada-bee0-1e0421bedd0f||Sequence: R016 ve11c/master r/8780670; Nov 27 2017 15:05:12 by eja", "dcmmeta_affine": [ [-1.9943071603775024, -0.14645281434059143, 0.035923443734645844, 128.36358642578125], [-0.14889180660247803, 1.9878982305526733, -0.16153018176555634, -79.3553466796875], [0.02387780137360096, 0.1637447625398636, 1.9931426048278809, -71.53194427490234], [0.0, 0.0, 0.0, 1.0] ], "dcmmeta_reorient_transform": [ [0.0, -1.0, 0.0, 119.0], [1.0, 0.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0] ], "dcmmeta_shape": [120, 120, 72, 185], "dcmmeta_slice_dim": 2, "dcmmeta_version": 0.6, "global": { "const": { "AcquisitionMatrix": [120, 0, 0, 120], "AngioFlag": "N", "BitsAllocated": 16, "BitsStored": 16, "BodyPartExamined": "BRAIN", "Columns": 1080, "EchoNumbers": 1, "EchoTime": 28.0, "EchoTrainLength": 90, "FlipAngle": 60.0, "HighBit": 15, "ImageOrientationPatient": [0.99715358376331, 0.07444590681609, 0.01193890054905, -0.0732264084344, 0.99394909643602, -0.0818723811906], "ImagePositionPatient": [-997.90578678932, -1182.8637424893, 15.089827488919], "ImageType": [ "ORIGINAL", "PRIMARY", "M", "MB", "ND", "NORM", "MOSAIC" ], "ImagedNucleus": "1H", "ImagingFrequency": 123.248202, "InPlanePhaseEncodingDirection": "COL", "MRAcquisitionType": "2D", "MagneticFieldStrength": 3.0, "Manufacturer": "SIEMENS", "ManufacturerModelName": "Prisma_fit", "Modality": "MR", "NumberOfAverages": 1.0, "NumberOfPhaseEncodingSteps": 90, "PercentPhaseFieldOfView": 100.0, "PercentSampling": 100.0, "PerformedProcedureStepStartTime": "110525.499000", "PhotometricInterpretation": "MONOCHROME2", "PixelBandwidth": 2085.0, "PixelRepresentation": 0, "PixelSpacing": [2.0, 2.0], "ProtocolName": "run1", "RepetitionTime": 2000.0, "Rows": 1080, "SAR": 0.03076473040219, "SamplesPerPixel": 1, "ScanOptions": [ "PFP", "FS" ], "ScanningSequence": "EP", "SequenceName": "epfid2d1_120", "SequenceVariant": [ "SK", "SS" ], "SeriesDescription": "run1", "SeriesNumber": 16, "SeriesTime": "113551.322000", "SliceLocation": -62.571906590481, "SliceThickness": 2.0, "SmallestImagePixelValue": 0, "SoftwareVersions": "syngo MR E11", "SpacingBetweenSlices": 1.9999999532945, "StudyID": "1", "StudyTime": "110525.400000", "TransmitCoilName": "Body", "VariableFlipAngleFlag": "N", "WindowCenterWidthExplanation": "Algo1", "dBdt": 0.0}, "slices": {} }, "time": { "samples": { "AcquisitionNumber": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185], "AcquisitionTime": ["113546.767500", "113548.767500", "113550.767500", "113552.767500", "113554.767500", "113556.767500", "113558.767500", "113600.767500", "113602.767500", "113604.767500", "113606.767500", "113608.767500", "113610.767500", "113612.767500", "113614.767500", "113616.767500", "113618.767500", "113620.767500", "113622.767500", "113624.767500", "113626.767500", "113628.767500", "113630.767500", "113632.767500", "113634.767500", "113636.767500", "113638.767500", "113640.767500", "113642.767500", "113644.767500", "113646.767500", "113648.767500", "113650.767500", "113652.767500", "113654.767500", "113656.767500", "113658.767500", "113700.767500", "113702.767500", "113704.767500", "113706.767500", "113708.767500", "113710.767500", "113712.767500", "113714.767500", "113716.767500", "113718.767500", "113720.767500", "113722.767500", "113724.767500", "113726.767500", "113728.767500", "113730.767500", "113732.767500", "113734.767500", "113736.767500", "113738.767500", "113740.767500", "113742.767500", "113744.767500", "113746.767500", "113748.767500", "113750.767500", "113752.767500", "113754.767500", "113756.767500", "113758.767500", "113800.767500", "113802.767500", "113804.767500", "113806.767500", "113808.767500", "113810.767500", "113812.767500", "113814.767500", "113816.767500", "113818.767500", "113820.767500", "113822.767500", "113824.767500", "113826.767500", "113828.767500", "113830.767500", "113832.767500", "113834.767500", "113836.767500", "113838.767500", "113840.767500", "113842.767500", "113844.767500", "113846.767500", "113848.767500", "113850.767500", "113852.767500", "113854.767500", "113856.767500", "113858.767500", "113900.767500", "113902.767500", "113904.767500", "113906.767500", "113908.767500", "113910.767500", "113912.767500", "113914.767500", "113916.767500", "113918.767500", "113920.767500", "113922.767500", "113924.767500", "113926.767500", "113928.767500", "113930.767500", "113932.767500", "113934.767500", "113936.767500", "113938.767500", "113940.767500", "113942.767500", "113944.767500", "113946.767500", "113948.767500", "113950.767500", "113952.767500", "113954.767500", "113956.767500", "113958.767500", "114000.767500", "114002.767500", "114004.767500", "114006.767500", "114008.767500", "114010.767500", "114012.767500", "114014.767500", "114016.767500", "114018.767500", "114020.767500", "114022.767500", "114024.767500", "114026.767500", "114028.767500", "114030.767500", "114032.767500", "114034.767500", "114036.767500", "114038.767500", "114040.767500", "114042.767500", "114044.767500", "114046.767500", "114048.767500", "114050.767500", "114052.767500", "114054.767500", "114056.767500", "114058.767500", "114100.767500", "114102.767500", "114104.767500", "114106.767500", "114108.767500", "114110.767500", "114112.767500", "114114.767500", "114116.767500", "114118.767500", "114120.767500", "114122.767500", "114124.767500", "114126.767500", "114128.767500", "114130.767500", "114132.767500", "114134.767500", "114136.767500", "114138.767500", "114140.767500", "114142.767500", "114144.767500", "114146.767500", "114148.767500", "114150.767500", "114152.767500", "114154.767500"], "ContentTime": ["113551.325000", "113552.823000", "113554.323000", "113555.823000", "113557.323000", "113559.323000", "113601.323000", "113603.322000", "113605.323000", "113607.323000", "113609.323000", "113611.323000", "113613.323000", "113615.323000", "113617.323000", "113619.323000", "113621.322000", "113623.323000", "113625.323000", "113627.323000", "113629.323000", "113631.323000", "113633.323000", "113635.323000", "113637.322000", "113639.823000", "113641.323000", "113643.323000", "113645.323000", "113647.823000", "113649.323000", "113651.323000", "113653.323000", "113655.322000", "113657.323000", "113659.323000", "113701.323000", "113703.323000", "113705.323000", "113707.323000", "113709.323000", "113711.323000", "113713.322000", "113715.323000", "113717.323000", "113719.323000", "113721.323000", "113723.323000", "113725.323000", "113727.323000", "113729.323000", "113731.322000", "113733.323000", "113735.323000", "113737.323000", "113739.323000", "113741.323000", "113743.323000", "113745.323000", "113747.322000", "113749.323000", "113751.323000", "113753.823000", "113755.323000", "113757.323000", "113759.323000", "113801.323000", "113803.323000", "113805.322000", "113807.323000", "113809.323000", "113811.323000", "113813.323000", "113815.323000", "113817.323000", "113819.823000", "113821.323000", "113823.322000", "113825.323000", "113827.323000", "113829.323000", "113831.323000", "113833.323000", "113835.323000", "113837.323000", "113839.323000", "113841.823000", "113843.323000", "113845.323000", "113847.323000", "113849.323000", "113851.323000", "113853.323000", "113855.323000", "113857.322000", "113859.323000", "113901.323000", "113903.323000", "113905.323000", "113907.323000", "113909.323000", "113911.823000", "113913.323000", "113915.322000", "113917.323000", "113919.823000", "113921.323000", "113923.323000", "113925.323000", "113927.323000", "113929.323000", "113931.823000", "113933.322000", "113935.323000", "113937.323000", "113939.323000", "113941.323000", "113943.323000", "113945.323000", "113947.323000", "113949.323000", "113951.323000", "113953.323000", "113955.323000", "113957.323000", "113959.323000", "114001.323000", "114003.323000", "114005.823000", "114007.322000", "114009.323000", "114011.823000", "114013.323000", "114015.323000", "114017.323000", "114019.323000", "114021.323000", "114023.323000", "114025.322000", "114027.323000", "114029.323000", "114031.323000", "114033.323000", "114035.323000", "114037.323000", "114039.823000", "114041.823000", "114043.322000", "114045.323000", "114047.323000", "114049.323000", "114051.323000", "114053.323000", "114055.323000", "114057.323000", "114059.323000", "114101.323000", "114103.323000", "114105.323000", "114107.323000", "114109.323000", "114111.323000", "114113.323000", "114115.323000", "114117.322000", "114119.323000", "114121.323000", "114123.823000", "114125.323000", "114127.323000", "114129.323000", "114131.323000", "114133.323000", "114135.822000", "114137.323000", "114139.323000", "114141.323000", "114143.323000", "114145.323000", "114147.323000", "114149.323000", "114151.323000", "114153.322000", "114155.323000", "114157.337000"], "InstanceCreationTime": ["113551.325000", "113552.823000", "113554.323000", "113555.823000", "113557.323000", "113559.323000", "113601.323000", "113603.322000", "113605.323000", "113607.323000", "113609.323000", "113611.323000", "113613.323000", "113615.323000", "113617.323000", "113619.323000", "113621.322000", "113623.323000", "113625.323000", "113627.323000", "113629.323000", "113631.323000", "113633.323000", "113635.323000", "113637.322000", "113639.823000", "113641.323000", "113643.323000", "113645.323000", "113647.823000", "113649.323000", "113651.323000", "113653.323000", "113655.322000", "113657.323000", "113659.323000", "113701.323000", "113703.323000", "113705.323000", "113707.323000", "113709.323000", "113711.323000", "113713.322000", "113715.323000", "113717.323000", "113719.323000", "113721.323000", "113723.323000", "113725.323000", "113727.323000", "113729.323000", "113731.322000", "113733.323000", "113735.323000", "113737.323000", "113739.323000", "113741.323000", "113743.323000", "113745.323000", "113747.322000", "113749.323000", "113751.323000", "113753.823000", "113755.323000", "113757.323000", "113759.323000", "113801.323000", "113803.323000", "113805.322000", "113807.323000", "113809.323000", "113811.323000", "113813.323000", "113815.323000", "113817.323000", "113819.823000", "113821.323000", "113823.322000", "113825.323000", "113827.323000", "113829.323000", "113831.323000", "113833.323000", "113835.323000", "113837.323000", "113839.323000", "113841.823000", "113843.323000", "113845.323000", "113847.323000", "113849.323000", "113851.323000", "113853.323000", "113855.323000", "113857.322000", "113859.323000", "113901.323000", "113903.323000", "113905.323000", "113907.323000", "113909.323000", "113911.823000", "113913.323000", "113915.322000", "113917.323000", "113919.823000", "113921.323000", "113923.323000", "113925.323000", "113927.323000", "113929.323000", "113931.823000", "113933.322000", "113935.323000", "113937.323000", "113939.323000", "113941.323000", "113943.323000", "113945.323000", "113947.323000", "113949.323000", "113951.323000", "113953.323000", "113955.323000", "113957.323000", "113959.323000", "114001.323000", "114003.323000", "114005.823000", "114007.322000", "114009.323000", "114011.823000", "114013.323000", "114015.323000", "114017.323000", "114019.323000", "114021.323000", "114023.323000", "114025.322000", "114027.323000", "114029.323000", "114031.323000", "114033.323000", "114035.323000", "114037.323000", "114039.823000", "114041.823000", "114043.322000", "114045.323000", "114047.323000", "114049.323000", "114051.323000", "114053.323000", "114055.323000", "114057.323000", "114059.323000", "114101.323000", "114103.323000", "114105.323000", "114107.323000", "114109.323000", "114111.323000", "114113.323000", "114115.323000", "114117.322000", "114119.323000", "114121.323000", "114123.823000", "114125.323000", "114127.323000", "114129.323000", "114131.323000", "114133.323000", "114135.822000", "114137.323000", "114139.323000", "114141.323000", "114143.323000", "114145.323000", "114147.323000", "114149.323000", "114151.323000", "114153.322000", "114155.323000", "114157.337000"], "InstanceNumber": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185], "LargestImagePixelValue": [18609, 20820, 21860, 22004, 20129, 20944, 18452, 17267, 17671, 17987, 16956, 19858, 20578, 20715, 19298, 17184, 18506, 18537, 18506, 21729, 21902, 18431, 19585, 19293, 19898, 17734, 19212, 21085, 20514, 20387, 20817, 17455, 17022, 18243, 17641, 18560, 20701, 22128, 18380, 17852, 20309, 20235, 20558, 20858, 20346, 20608, 20353, 17412, 17274, 19013, 20148, 20071, 18143, 18061, 18581, 18867, 19881, 19287, 20897, 20231, 17838, 17667, 19488, 19881, 21503, 21221, 19932, 18369, 19776, 20520, 18881, 20521, 21553, 17366, 18539, 20866, 21971, 17560, 18520, 18852, 17981, 20113, 17938, 18092, 20427, 20907, 20202, 18470, 18055, 21740, 20066, 17879, 18256, 20495, 21907, 18681, 17443, 18336, 18284, 18036, 21045, 19132, 17641, 19004, 19327, 18148, 21655, 20304, 20136, 20283, 20189, 23034, 17571, 20091, 17953, 20127, 21379, 17292, 18206, 18857, 17767, 21550, 21536, 21318, 21015, 20884, 20778, 16777, 18448, 19449, 18074, 19224, 19993, 21522, 22027, 21444, 21143, 19683, 17062, 20150, 18318, 19808, 20184, 21202, 22156, 19396, 17951, 17575, 18059, 20338, 18202, 18177, 18548, 18187, 22172, 22085, 17643, 18774, 20160, 20572, 18955, 17920, 18540, 21505, 20976, 17352, 18579, 19793, 20525, 19418, 19166, 18319, 19831, 20829, 18260, 18064, 21813, 20788, 19862, 21894, 21034, 21107, 17112, 19676, 19211], "WindowCenter": [6529.0, 6528.0, 6519.0, 6515.0, 6512.0, 6510.0, 6497.0, 6483.0, 6500.0, 6508.0, 6500.0, 6529.0, 6543.0, 6547.0, 6525.0, 6497.0, 6512.0, 6517.0, 6520.0, 6536.0, 6539.0, 6501.0, 6499.0, 6490.0, 6512.0, 6507.0, 6527.0, 6539.0, 6536.0, 6515.0, 6521.0, 6494.0, 6496.0, 6510.0, 6501.0, 6505.0, 6501.0, 6510.0, 6498.0, 6508.0, 6523.0, 6509.0, 6490.0, 6493.0, 6495.0, 6507.0, 6516.0, 6490.0, 6494.0, 6498.0, 6511.0, 6521.0, 6508.0, 6490.0, 6490.0, 6493.0, 6502.0, 6508.0, 6532.0, 6514.0, 6494.0, 6491.0, 6512.0, 6502.0, 6520.0, 6519.0, 6516.0, 6492.0, 6501.0, 6496.0, 6482.0, 6519.0, 6530.0, 6499.0, 6506.0, 6518.0, 6531.0, 6483.0, 6490.0, 6494.0, 6482.0, 6514.0, 6506.0, 6511.0, 6533.0, 6532.0, 6513.0, 6495.0, 6506.0, 6537.0, 6509.0, 6493.0, 6496.0, 6512.0, 6525.0, 6488.0, 6481.0, 6483.0, 6492.0, 6496.0, 6524.0, 6528.0, 6495.0, 6502.0, 6515.0, 6504.0, 6534.0, 6519.0, 6518.0, 6390.0, 6537.0, 6544.0, 6487.0, 6496.0, 6484.0, 6512.0, 6524.0, 6496.0, 6499.0, 6507.0, 6512.0, 6538.0, 6520.0, 6524.0, 6514.0, 6509.0, 6522.0, 6481.0, 6495.0, 6514.0, 6500.0, 6522.0, 6513.0, 6519.0, 6519.0, 6513.0, 6508.0, 6503.0, 6465.0, 6499.0, 6496.0, 6515.0, 6490.0, 6477.0, 6460.0, 6441.0, 6453.0, 6457.0, 6390.0, 6490.0, 6508.0, 6522.0, 6510.0, 6496.0, 6522.0, 6528.0, 6497.0, 6504.0, 6504.0, 6504.0, 6491.0, 6492.0, 6496.0, 6529.0, 6522.0, 6502.0, 6500.0, 6514.0, 6501.0, 6508.0, 6512.0, 6490.0, 6502.0, 6511.0, 6495.0, 6497.0, 6517.0, 6502.0, 6495.0, 6496.0, 6507.0, 6509.0, 6456.0, 6474.0, 6473.0], "WindowWidth": [13847.0, 13825.0, 13800.0, 13789.0, 13791.0, 13785.0, 13771.0, 13747.0, 13778.0, 13790.0, 13782.0, 13820.0, 13846.0, 13855.0, 13818.0, 13775.0, 13794.0, 13806.0, 13812.0, 13830.0, 13835.0, 13777.0, 13767.0, 13748.0, 13789.0, 13788.0, 13822.0, 13836.0, 13835.0, 13797.0, 13806.0, 13769.0, 13773.0, 13793.0, 13778.0, 13784.0, 13767.0, 13777.0, 13768.0, 13793.0, 13809.0, 13783.0, 13747.0, 13748.0, 13752.0, 13775.0, 13792.0, 13762.0, 13768.0, 13769.0, 13788.0, 13805.0, 13792.0, 13758.0, 13754.0, 13761.0, 13768.0, 13786.0, 13824.0, 13792.0, 13766.0, 13758.0, 13790.0, 13774.0, 13800.0, 13800.0, 13800.0, 13760.0, 13771.0, 13760.0, 13738.0, 13799.0, 13821.0, 13778.0, 13785.0, 13799.0, 13821.0, 13742.0, 13755.0, 13760.0, 13741.0, 13793.0, 13786.0, 13793.0, 13826.0, 13825.0, 13793.0, 13763.0, 13787.0, 13829.0, 13787.0, 13762.0, 13767.0, 13785.0, 13811.0, 13751.0, 13738.0, 13745.0, 13756.0, 13767.0, 13807.0, 13821.0, 13768.0, 13776.0, 13796.0, 13784.0, 13824.0, 13805.0, 13805.0, 13548.0, 13844.0, 13842.0, 13751.0, 13762.0, 13746.0, 13789.0, 13811.0, 13770.0, 13769.0, 13784.0, 13796.0, 13836.0, 13803.0, 13808.0, 13792.0, 13783.0, 13805.0, 13746.0, 13763.0, 13795.0, 13777.0, 13811.0, 13793.0, 13799.0, 13799.0, 13785.0, 13782.0, 13774.0, 13715.0, 13763.0, 13765.0, 13795.0, 13749.0, 13721.0, 13688.0, 13660.0, 13687.0, 13692.0, 13559.0, 13747.0, 13789.0, 13816.0, 13793.0, 13768.0, 13800.0, 13816.0, 13774.0, 13780.0, 13777.0, 13777.0, 13756.0, 13758.0, 13768.0, 13812.0, 13803.0, 13784.0, 13772.0, 13794.0, 13765.0, 13786.0, 13792.0, 13758.0, 13775.0, 13787.0, 13766.0, 13770.0, 13793.0, 13771.0, 13762.0, 13755.0, 13778.0, 13783.0, 13699.0, 13721.0, 13719.0] }, "slices": {} } }

Bids_validator version 1.5.7

Many thanks!

Best, Jason

sappelhoff commented 3 years ago

thanks for the report @jasongong11 ... I tried to replicate this issue by bumping the bids-validator version on bids-examples and doing a travis run: https://travis-ci.org/github/bids-standard/bids-examples/builds/741338158

however, I don't see any errors of malformatted "CogAtlasID" in the absence of that field.

maybe @rwblair knows what's going on.

jasongong11 commented 3 years ago

Thanks! @sappelhoff

I added the "CogAtlasID" field in the json file. Then the validator stopped reporting this error. I guess I can just get this around by adding the field in the json files. But still wondering what causes the issue.

Many thx again!

Best, Jason

sappelhoff commented 3 years ago

indeed we should solve that issue. Did you simply add any "dummy" data to that field? Or does it actually make sense for you to use it?

I would not advise to add "dummy" data just to pacify the validator :-) we'll try to be quick to solve this error

jasongong11 commented 3 years ago

Thanks for the notice!

Yes, I arbitrarily choose a Cognitive Atlas concept and put the URL in the field. And many thanks for solving this! :D

For replicating the error here is the json file (I converted it to txt file since github does not support json file uploading)

sub-005_task-game_run-01_bold.json.txt

Thanks again!

Best, Jason

jasongong11 commented 3 years ago

Hi,

I think I figured out what is wrong.

The two grand json files (task-game_bold.json and task-rest_bold.json) contain the CogAtlasID and I think the BIDS converter just put "TO DO" values in the field in the grand json files. But the json files for each BOLD images do not contain the field. So the validator recognizes that there should be CogAtlasID in the individual json files. And it throws the errors for each individual BOLD json files.

Thanks for your help!

Best, Jason

sappelhoff commented 3 years ago

Nice, that sounds like the inheritance principle was at work. This means the validator behaved as expected.

I am glad you found the issue and could resolve it. Good luck with your dataset preparation!

jasongong11 commented 3 years ago

Thank you very much! :D

Best, Jason