1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.datamodel.xdb.embl; |
22 |
|
|
23 |
|
import java.io.StringReader; |
24 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
25 |
|
public class EmblTestHelper |
26 |
|
{ |
27 |
|
|
28 |
|
|
29 |
|
private static final String TESTDATA = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" |
30 |
|
+ "<ROOT>" |
31 |
|
+ "<entry accession=\"X07547\" version=\"1\" entryVersion=\"8\"" |
32 |
|
+ " dataClass=\"STD\" taxonomicDivision=\"PRO\"" |
33 |
|
+ " moleculeType=\"genomic DNA\" sequenceLength=\"7499\" topology=\"linear\"" |
34 |
|
+ " firstPublic=\"1988-11-10\" firstPublicRelease=\"18\"" |
35 |
|
+ " lastUpdated=\"1999-02-10\" lastUpdatedRelease=\"58\">" |
36 |
|
+ "<secondaryAccession>X07574</secondaryAccession>" |
37 |
|
+ "<description>C. trachomatis plasmid</description>" |
38 |
|
+ "<keyword>plasmid</keyword><keyword>unidentified reading frame</keyword>" |
39 |
|
+ "<xref db=\"EuropePMC\" id=\"PMC107176\" secondaryId=\"9573186\" />" |
40 |
|
+ "<xref db=\"MD5\" id=\"ac73317\" />" |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
+ "<feature name=\"CDS\" location=\"complement(46..57)\">" |
45 |
|
|
46 |
|
+ "<xref db=\"UniProtKB/Swiss-Prot\" id=\"B0BCM4\" secondaryId=\"2.1\" />" |
47 |
|
+ "<xref db=\"UniProtKB/Swiss-Prot\" id=\"P0CE20\" />" |
48 |
|
+ "<qualifier name=\"note\"><value>ORF 8 (AA 1-330)</value><value>pickle</value></qualifier>" |
49 |
|
+ "<qualifier name=\"protein_id\"><value>CAA30420.1</value></qualifier>" |
50 |
|
+ "<qualifier name=\"translation\"><value>MLCF</value><evidence>Keith</evidence></qualifier>" |
51 |
|
+ "</feature>" |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
+ "<feature name=\"CDS\" location=\"4..15\">" |
56 |
|
+ "<xref db=\"UniProtKB/Swiss-Prot\" id=\"B0BCM3\" />" |
57 |
|
+ "<qualifier name=\"protein_id\"><value>CAA30421.1</value></qualifier>" |
58 |
|
+ "<qualifier name=\"translation\"><value>MSSS</value></qualifier>" |
59 |
|
+ "</feature>" |
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
+ "<feature name=\"CDS\" location=\"join(4..6,10..15)\">" |
65 |
|
+ "<qualifier name=\"protein_id\"><value>CAA12345.6</value></qualifier>" |
66 |
|
+ "<qualifier name=\"translation\"><value>MSS</value></qualifier>" |
67 |
|
+ "</feature>" |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
+ "<sequence>GGTATGTCCTCTAGTACAAAC\n" |
74 |
|
+ "ACCCCCAATATTGTGATATAATTAAAAACATAGCAT" |
75 |
|
+ "</sequence></entry></ROOT>"; |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
2 |
static EmblFile getEmblFile()... |
78 |
|
{ |
79 |
2 |
return EmblFile.getEmblFile(new StringReader(TESTDATA)); |
80 |
|
} |
81 |
|
} |