Skip to content

Commit 4c36b98

Browse files
committed
- Add additional fields to VCF/lucene indexing
- Update scRNA-seq archive links
1 parent 59df489 commit 4c36b98

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseFieldUtils.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,10 @@ public static Map<String, JBrowseFieldDescriptor> getIndexedFields(JsonFile json
7575
public static Map<String, JBrowseFieldDescriptor> getGenotypeDependentFields(@Nullable JsonFile jsonFile) {
7676
Map<String, JBrowseFieldDescriptor> ret = new HashMap<>();
7777
ret.put(VARIABLE_SAMPLES, new JBrowseFieldDescriptor(VARIABLE_SAMPLES, "All samples with this variant", true, true, VCFHeaderLineType.Character, 7).multiValued(true).label("Samples With Variant"));
78-
79-
// TODO: restore these once existing indexes are regenerated:
80-
// ret.put(N_HET, new JBrowseFieldDescriptor(N_HET, "The number of samples with this allele that are heterozygous", false, true, VCFHeaderLineType.Integer, 9).label("# Heterozygotes"));
81-
// ret.put(N_HOMVAR, new JBrowseFieldDescriptor(N_HOMVAR, "The number of samples with this allele that are homozygous", false, true, VCFHeaderLineType.Integer, 9).label("# Homozygous Variant"));
82-
// ret.put(N_CALLED, new JBrowseFieldDescriptor(N_CALLED, "The number of samples with called genotypes at this position", false, true, VCFHeaderLineType.Integer, 9).label("# Genotypes Called"));
83-
// ret.put(FRACTION_HET, new JBrowseFieldDescriptor(FRACTION_HET, "The fraction of samples with this allele that are heterozygous", false, true, VCFHeaderLineType.Float, 9).label("Fraction Heterozygotes"));
78+
ret.put(N_HET, new JBrowseFieldDescriptor(N_HET, "The number of samples with this allele that are heterozygous", false, true, VCFHeaderLineType.Integer, 9).label("# Heterozygotes"));
79+
ret.put(N_HOMVAR, new JBrowseFieldDescriptor(N_HOMVAR, "The number of samples with this allele that are homozygous", false, true, VCFHeaderLineType.Integer, 9).label("# Homozygous Variant"));
80+
ret.put(N_CALLED, new JBrowseFieldDescriptor(N_CALLED, "The number of samples with called genotypes at this position", false, true, VCFHeaderLineType.Integer, 9).label("# Genotypes Called"));
81+
ret.put(FRACTION_HET, new JBrowseFieldDescriptor(FRACTION_HET, "The fraction of samples with this allele that are heterozygous", false, true, VCFHeaderLineType.Float, 9).label("Fraction Heterozygotes"));
8482

8583
if (jsonFile != null) {
8684
File vcf = jsonFile.getTrackFile();
@@ -99,6 +97,12 @@ public static Map<String, JBrowseFieldDescriptor> getGenotypeDependentFields(@Nu
9997
}
10098
else
10199
{
100+
ret.put(VARIABLE_SAMPLES, new JBrowseFieldDescriptor(VARIABLE_SAMPLES, "All samples with this variant", true, true, VCFHeaderLineType.Character, 7).multiValued(true).label("Samples With Variant"));
101+
ret.put(N_HET, new JBrowseFieldDescriptor(N_HET, "The number of samples with this allele that are heterozygous", false, true, VCFHeaderLineType.Integer, 9).label("# Heterozygotes"));
102+
ret.put(N_HOMVAR, new JBrowseFieldDescriptor(N_HOMVAR, "The number of samples with this allele that are homozygous", false, true, VCFHeaderLineType.Integer, 9).label("# Homozygous Variant"));
103+
ret.put(N_CALLED, new JBrowseFieldDescriptor(N_CALLED, "The number of samples with called genotypes at this position", false, true, VCFHeaderLineType.Integer, 9).label("# Genotypes Called"));
104+
ret.put(FRACTION_HET, new JBrowseFieldDescriptor(FRACTION_HET, "The fraction of samples with this allele that are heterozygous", false, true, VCFHeaderLineType.Float, 9).label("Fraction Heterozygotes"));
105+
102106
ret.get(VARIABLE_SAMPLES).allowableValues(header.getSampleNamesInOrder());
103107
}
104108
}

singlecell/resources/views/singleCellDataManagement.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
'query.totalForwardReads~isnonblank': null,
9292
'query.isArchived~eq': 0,
9393
'query.readdataWithoutSra~eq': 0,
94-
'query.totalAlignments~gt': 0,
94+
'query.readset/outputFileTypes~contains': '10x VLoupe',
9595
'query.application~contains': 'single',
9696
'query.status~isblank': null,
9797
'query.librarytype~doesnotcontain': 'BCR',

0 commit comments

Comments
 (0)