if(!InnateImmunityMetadata) var InnateImmunityMetadata = {};







InnateImmunityMetadata.ThunderData = {
    colToIndex: {
        id: 0,
        sampleName: 0,
        cd: 1,
        mem: 2,
        replicate: 3
    },

    metadata: [
        ['CD4 spt: Thu/WT','CD4','Single Positive Thymocytes','Thu: 4, WT: 4'],
        ['CD8 spt: Thu/WT','CD8','Single Positive Thymocytes','Thu: 4, WT: 4'],
        ['CD4-memory: Thu/WT','CD4','Memory','Thu: 4, WT: 4'],
        ['CD8-memory: Thu/WT','CD8','Memory','Thu: 4, WT: 4'],
        ['CD4-naive: Thu/WT','CD4','Naive','Thu: 4, WT: 4'],
        ['CD8-naive: Thu/WT','CD8','Naive','Thu: 4, WT: 4']
    ]
};

//InnateImmunityMetadata.ThunderData = {
//    colToIndex: {
//        celFileName: 0,
//        sampleRName: 1,
//        sp: 2,
//        mem: 3,
//        cd: 4,
//        genotype: 5,
//        replicate: 6
//    },
//
//    metadata: [
//        ['20060915_01_WT_Thymus_CD4-1B.CEL','20060915_01_WT_Thymus_CD4.1B.CEL','TRUE','NA','CD4','WT','1B'],
//        ['20070212_01_WT4_CD4.CEL','20070212_01_WT4_CD4.CEL','TRUE','NA','CD4','WT','_'],
//        ['20070904_01_WT_Thymus_CD4-1A.CEL','20070904_01_WT_Thymus_CD4.1A.CEL','TRUE','NA','CD4','WT','1A'],
//        ['20070904_02_WT_Thymus_CD4-1C.CEL','20070904_02_WT_Thymus_CD4.1C.CEL','TRUE','NA','CD4','WT','1C'],
//        ['20060915_02_Thu_Thymus_CD4-2B.CEL','20060915_02_Thu_Thymus_CD4.2B.CEL','TRUE','NA','CD4','Thu','2B'],
//        ['20070212_03_Thu56_CD4.CEL','20070212_03_Thu56_CD4.CEL','TRUE','NA','CD4','Thu','_'],
//        ['20070904_05_Thu_Thymus_CD4-2A.CEL','20070904_05_Thu_Thymus_CD4.2A.CEL','TRUE','NA','CD4','Thu','2A'],
//        ['20070904_06_Thu_Thymus_CD4-2C.CEL','20070904_06_Thu_Thymus_CD4.2C.CEL','TRUE','NA','CD4','Thu','2C'],
//        ['20060915_03_WT_Thymus_CD8-1B.CEL','20060915_03_WT_Thymus_CD8.1B.CEL','TRUE','NA','CD8','WT','1B'],
//        ['20070212_02_WT4_CD8.CEL','20070212_02_WT4_CD8.CEL','TRUE','NA','CD8','WT','_'],
//        ['20070904_03_WT_Thymus_CD8-1A.CEL','20070904_03_WT_Thymus_CD8.1A.CEL','TRUE','NA','CD8','WT','1A'],
//        ['20070904_04_WT_Thymus_CD8-1C.CEL','20070904_04_WT_Thymus_CD8.1C.CEL','TRUE','NA','CD8','WT','1C'],
//        ['20060915_04_Thu_Thymus_CD8-2B.CEL','20060915_04_Thu_Thymus_CD8.2B.CEL','TRUE','NA','CD8','Thu','2B'],
//        ['20070212_04_Thu56_CD8.CEL','20070212_04_Thu56_CD8.CEL','TRUE','NA','CD8','Thu','_'],
//        ['20070904_07_Thu_Thymus_CD8-2A.CEL','20070904_07_Thu_Thymus_CD8.2A.CEL','TRUE','NA','CD8','Thu','2A'],
//        ['20070904_08_Thu_Thymus_CD8-2C.CEL','20070904_08_Thu_Thymus_CD8.2C.CEL','TRUE','NA','CD8','Thu','2C'],
//        ['20070920_08_wt1_mem_CD4.CEL','20070920_08_wt1_mem_CD4.CEL','FALSE','m','CD4','WT','1'],
//        ['20070920_12_wt2_mem_CD4.CEL','20070920_12_wt2_mem_CD4.CEL','FALSE','m','CD4','WT','2'],
//        ['20070924_04_wt3_mem_CD4.CEL','20070924_04_wt3_mem_CD4.CEL','FALSE','m','CD4','WT','3'],
//        ['20070924_08_wt4_mem_CD4.CEL','20070924_08_wt4_mem_CD4.CEL','FALSE','m','CD4','WT','4'],
//        ['20070924_12_thu1_mem_CD4.CEL','20070924_12_thu1_mem_CD4.CEL','FALSE','m','CD4','Thu','1'],
//        ['20070926_10_thu2_mem_CD4.CEL','20070926_10_thu2_mem_CD4.CEL','FALSE','m','CD4','Thu','2'],
//        ['20071001_04_thu3_mem_CD4.CEL','20071001_04_thu3_mem_CD4.CEL','FALSE','m','CD4','Thu','3'],
//        ['20071001_08_thu4_mem_CD4.CEL','20071001_08_thu4_mem_CD4.CEL','FALSE','m','CD4','Thu','4'],
//        ['20070920_10_wt1_mem_CD8.CEL','20070920_10_wt1_mem_CD8.CEL','FALSE','m','CD8','WT','1'],
//        ['20070924_02_wt2_mem_CD8.CEL','20070924_02_wt2_mem_CD8.CEL','FALSE','m','CD8','WT','2'],
//        ['20070924_06_wt3_mem_CD8.CEL','20070924_06_wt3_mem_CD8.CEL','FALSE','m','CD8','WT','3'],
//        ['20070924_10_wt4_mem_CD8.CEL','20070924_10_wt4_mem_CD8.CEL','FALSE','m','CD8','WT','4'],
//        ['20070926_08_thu1_mem_CD8.CEL','20070926_08_thu1_mem_CD8.CEL','FALSE','m','CD8','Thu','1'],
//        ['20071001_02_thu2_mem_CD8.CEL','20071001_02_thu2_mem_CD8.CEL','FALSE','m','CD8','Thu','2'],
//        ['20071001_06_thu3_mem_CD8.CEL','20071001_06_thu3_mem_CD8.CEL','FALSE','m','CD8','Thu','3'],
//        ['20071001_10_thu4_mem_CD8.CEL','20071001_10_thu4_mem_CD8.CEL','FALSE','m','CD8','Thu','4'],
//        ['20070920_07_wt1_naive_CD4.CEL','20070920_07_wt1_naive_CD4.CEL','FALSE','n','CD4','WT','1'],
//        ['20070920_11_wt2_naive_CD4.CEL','20070920_11_wt2_naive_CD4.CEL','FALSE','n','CD4','WT','2'],
//        ['20070924_03_wt3_naive_CD4.CEL','20070924_03_wt3_naive_CD4.CEL','FALSE','n','CD4','WT','3'],
//        ['20070924_07_wt4_naive_CD4.CEL','20070924_07_wt4_naive_CD4.CEL','FALSE','n','CD4','WT','4'],
//        ['20070924_11_thu1_naive_CD4.CEL','20070924_11_thu1_naive_CD4.CEL','FALSE','n','CD4','Thu','1'],
//        ['20070926_09_thu2_naive_CD4.CEL','20070926_09_thu2_naive_CD4.CEL','FALSE','n','CD4','Thu','2'],
//        ['20071001_03_thu3_naive_CD4.CEL','20071001_03_thu3_naive_CD4.CEL','FALSE','n','CD4','Thu','3'],
//        ['20071001_07_thu4_naive_CD4.CEL','20071001_07_thu4_naive_CD4.CEL','FALSE','n','CD4','Thu','4'],
//        ['20070920_09_wt1_naive_CD8.CEL','20070920_09_wt1_naive_CD8.CEL','FALSE','n','CD8','WT','1'],
//        ['20070924_01_wt2_naive_CD8.CEL','20070924_01_wt2_naive_CD8.CEL','FALSE','n','CD8','WT','2'],
//        ['20070924_05_wt3_naive_CD8.CEL','20070924_05_wt3_naive_CD8.CEL','FALSE','n','CD8','WT','3'],
//        ['20070924_09_wt4_naive_CD8.CEL','20070924_09_wt4_naive_CD8.CEL','FALSE','n','CD8','WT','4'],
//        ['20070926_07_thu1_naive_CD8.CEL','20070926_07_thu1_naive_CD8.CEL','FALSE','n','CD8','Thu','1'],
//        ['20071001_01_thu2_naive_CD8.CEL','20071001_01_thu2_naive_CD8.CEL','FALSE','n','CD8','Thu','2'],
//        ['20071001_05_thu3_naive_CD8.CEL','20071001_05_thu3_naive_CD8.CEL','FALSE','n','CD8','Thu','3'],
//        ['20071001_09_thu4_naive_CD8.CEL','20071001_09_thu4_naive_CD8.CEL','FALSE','n','CD8','Thu','4']
//    ]
//};
//









//Ext.ns('InnateImmunity.DatasetType');
//
//// -----------------------------------------------------------
//// - Thunder Data
//InnateImmunity.DatasetType.Thunder = function(sampleSelector) {
//
//    if (!sampleSelector) {
//        Ext.MessageBox.alert("Error: SampleSelector object not provided");
//    }
//
//
//    return {
//        displayName: "Thunder Data",
//
//        showDataSetChangeWindow: sampleSelector.showDataSetChangeWindow,
//        setSampleSelection: sampleSelector.setSampleSelection,
//
//        sampleSelectStore: Ext.data.ArrayStore({
//            fields: [
//                {name: 'sampleName', type: 'string'},
//                {name: 'cellType', type: 'string'},
//                {name: 'genotype', type: 'string'},
//                {name: 'replicate', type: 'string'},
//                {name: 'celFileName', type: 'string'},
//            ]
//        }),
//
//        SampleRecord: Ext.data.Record.create({name: 'sampleName'}, {name: 'cellType'}, {name: 'genotype'}, {name: 'replicate'}, {name: 'celFileName'}),
//
//        sampleSelectGrid: new Ext.grid.GridPanel({
//            id: "sampleSelectGrid_Thunder",
//            store: this.sampleSelectStore,
//            columns: [{
//                id: "sampleNameCol",
//                header: "Sample Name",
//                sortable: true,
//                dataIndex: "sampleName"
//            },{
//                id: "genotypeCol",
//                header: "Genotype",
//                sortable: true,
//                dataIndex: "genotype"
//            },{
//                id: "cellTypeCol",
//                header: "",
//                sortable: true,
//                dataIndex: ""
//            },{
//                id: "replicateCol",
//                header: "Replicate",
//                sortable: true,
//                dataIndex: "replicate"
//            },{
//                id: "celFileNameCol",
//                header: "CEL File Name",
//                sortable: true,
//                dataIndex: "celFileName"
//            }],
//
//            viewConfig: {
//                forceFit: true
//            },
//            sm: new Ext.grid.RowSelectionModel({}),
//            stripeRows: true,
//            autoHeight: true,
//            autoWidth: true,
//            border: false,
//            tbar: [
//                new Ext.Button({
//                    id: "addGeneListButton",
//                    text: "Choose Dataset",
//                    //                handler: this.showDataSetChangeWindow,
//                    icon: '../../images/icons/application_view_list.png'
//                })
//            ]
//            //        ,
//            //        listeners: {
//            //            selectionchange: this.setSampleSelection
//            //        }
//        })
//    }
//};
//




//
//
//
//
//
//    var DataSetType_Thunder = {
//
//        sampleSelectStore: new Ext.data.ArrayStore({
//            fields: [
//                {name: 'sampleName', type: 'string'},
//                {name: 'cellType', type: 'string'},
//                {name: 'genotype', type: 'string'},
//                {name: 'replicate', type: 'string'},
//                {name: 'celFileName', type: 'string'},
//            ]
//        }),
//
//        SampleRecord: Ext.data.Record.create({name: 'sampleName'}, {name: 'cellType'}, {name: 'genotype'}, {name: 'replicate'}, {name: 'celFileName'}),
//
//        sampleSelectGrid: new Ext.grid.GridPanel({
//            id: "sampleSelectGrid_Thunder1",
//            store: this.sampleSelectStore,
//            columns: [{
//                id: "sampleNameCol",
//                header: "Sample Name",
//                sortable: true,
//                dataIndex: "sampleName"
//            },{
//                id: "genotypeCol",
//                header: "Genotype",
//                sortable: true,
//                dataIndex: "genotype"
//            },{
//                id: "cellTypeCol",
//                header: "",
//                sortable: true,
//                dataIndex: ""
//            },{
//                id: "replicateCol",
//                header: "Replicate",
//                sortable: true,
//                dataIndex: "replicate"
//            },{
//                id: "celFileNameCol",
//                header: "CEL File Name",
//                sortable: true,
//                dataIndex: "celFileName"
//            }],
//
//            viewConfig: {
//                forceFit: true
//            },
//            sm: new Ext.grid.RowSelectionModel({}),
//            stripeRows: true,
//            autoHeight: true,
//            autoWidth: true,
//            border: false,
//            tbar: [
//                new Ext.Button({
//                    id: "showDataSetChangeWindowButton",
//                    text: "Choose Dataset",
//                    handler: showDataSetChangeWindow,
//                    icon: '../../images/icons/application_view_list.png'
//                })
//            ]
//            ,
//            listeners: {
//                selectionchange: setSampleSelection
//            }
//        })
//    };



