<commit_before>__author__ = 'sulantha'
import subprocess
import os
import fnmatch
import distutils.dir_util
import distutils.file_util
import shutil
from Utils.PipelineLogger import PipelineLogger
import Config.ConverterConfig as cc
from Converters.ConversionScripts.ADNI_V1_T1 import ADNI_V1_T1
from Converters.ConversionScripts.ADNI_V1_PET import ADNI_V1_PET
from Converters.ConversionScripts.ADNI_V1_FMRI import ADNI_V1_FMRI

class Raw2MINCConverter:
    def __init__(self):
        self.convertionScriptsDict = {'ADNI':
                             {'AV45': {'V1': {'nifti': self.adni_v1_pet_nii,
                                              'dicom': self.adni_v1_pet_dicom,
                                              'v': self.adni_v1_pet_v,
                                              'minc': self.adni_v1_pet_minc}},
                              'FDG': {'V1': {'nifti': self.adni_v1_pet_nii,
                                             'dicom': self.adni_v1_pet_dicom,
                                             'v': self.adni_v1_pet_v,
                                             'minc': self.adni_v1_pet_minc}},
                              'T1': {'V1': {'nifti': self.adni_v1_t1_nii,
                                            'dicom': self.adni_v1_t1_dicom,
                                            'v': self.adni_v1_t1_v,
                                            'minc': self.adni_v1_t1_minc}},
                              'rsfmri': {'V1': {'nifti': self.adni_v1_rsfmri_nii,
                                            'dicom': self.adni_v1_rsfmri_dicom,
                                            'v': self.adni_v1_rsfmri_v,
                                            'minc': self.adni_v1_rsfmri_minc}}
                              }}
<commit_msg>Added FMRI Versions<commit_after>__author__ = 'sulantha'
import subprocess
import os
import fnmatch
import distutils.dir_util
import distutils.file_util
import shutil
from Utils.PipelineLogger import PipelineLogger
import Config.ConverterConfig as cc
from Converters.ConversionScripts.ADNI_V1_T1 import ADNI_V1_T1
from Converters.ConversionScripts.ADNI_V1_PET import ADNI_V1_PET
from Converters.ConversionScripts.ADNI_V1_FMRI import ADNI_V1_FMRI

class Raw2MINCConverter:
    def __init__(self):
        self.convertionScriptsDict = {'ADNI':
                             {'AV45': {'V1': {'nifti': self.adni_v1_pet_nii,
                                              'dicom': self.adni_v1_pet_dicom,
                                              'v': self.adni_v1_pet_v,
                                              'minc': self.adni_v1_pet_minc}},
                              'FDG': {'V1': {'nifti': self.adni_v1_pet_nii,
                                             'dicom': self.adni_v1_pet_dicom,
                                             'v': self.adni_v1_pet_v,
                                             'minc': self.adni_v1_pet_minc}},
                              'T1': {'V1': {'nifti': self.adni_v1_t1_nii,
                                            'dicom': self.adni_v1_t1_dicom,
                                            'v': self.adni_v1_t1_v,
                                            'minc': self.adni_v1_t1_minc}},
                              'rsfmri': {'V1': {'nifti': self.adni_v1_rsfmri_nii,
                                            'dicom': self.adni_v1_rsfmri_dicom,
                                            'v': self.adni_v1_rsfmri_v,
                                            'minc': self.adni_v1_rsfmri_minc}},
                              'ext-rsfmri': {'V1': {'nifti': self.adni_v1_rsfmri_nii,
                                            'dicom': self.adni_v1_rsfmri_dicom,
                                            'v': self.adni_v1_rsfmri_v,
                                            'minc': self.adni_v1_rsfmri_minc}}
                              }}

{'fraction_non_alphanumeric': 0.08401849948612539, 'fraction_numerical': 0.019784172661870502, 'mean_word_length': 1.1651835372636263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 54, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6487994', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1158, 'n_words': 172}