X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2Fvcf%2FVCFLoaderTest.java;fp=test%2Fjalview%2Fio%2Fvcf%2FVCFLoaderTest.java;h=2b418de990b35bdd70eecca833f8823d879b95ef;hb=3459a8a691cb22508d7067f240b7254e588e77d3;hp=a2bb08e6d3276cfd6433ba16fcf6798cb1261e99;hpb=5b27f1062b2203c4c31702e205f4c78e1992063e;p=jalview.git diff --git a/test/jalview/io/vcf/VCFLoaderTest.java b/test/jalview/io/vcf/VCFLoaderTest.java index a2bb08e..2b418de 100644 --- a/test/jalview/io/vcf/VCFLoaderTest.java +++ b/test/jalview/io/vcf/VCFLoaderTest.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.io.vcf; import static jalview.io.gff.SequenceOntologyI.SEQUENCE_VARIANT; @@ -36,11 +56,10 @@ public class VCFLoaderTest private static final float DELTA = 0.00001f; // columns 9717- of gene P30419 from Ensembl (much modified) - private static final String FASTA = "" - + - /* - * forward strand 'gene' and 'transcript' with two exons - */ + private static final String FASTA = "" + + /* + * forward strand 'gene' and 'transcript' with two exons + */ ">gene1/1-25 chromosome:GRCh38:17:45051610:45051634:1\n" + "CAAGCTGGCGGACGAGAGTGTGACA\n" + ">transcript1/1-18\n--AGCTGGCG----AGAGTGTGAC-\n" @@ -49,8 +68,8 @@ public class VCFLoaderTest * reverse strand gene and transcript (reverse complement alleles!) */ + ">gene2/1-25 chromosome:GRCh38:17:45051610:45051634:-1\n" - + "TGTCACACTCTCGTCCGCCAGCTTG\n" - + ">transcript2/1-18\n" + "-GTCACACTCT----CGCCAGCT--\n" + + "TGTCACACTCTCGTCCGCCAGCTTG\n" + ">transcript2/1-18\n" + + "-GTCACACTCT----CGCCAGCT--\n" /* * 'gene' on chromosome 5 with two transcripts @@ -61,7 +80,8 @@ public class VCFLoaderTest + ">transcript4/1-18\n-----TGG-GGACGAGAGTGTGA-A\n"; private static final String[] VCF = { "##fileformat=VCFv4.2", - // fields other than AF are ignored when parsing as they have no INFO definition + // fields other than AF are ignored when parsing as they have no INFO + // definition "##INFO=", "##INFO=