Skip to content

Commit d71172a

Browse files
author
Sebastian
committed
update to AlphaFold v6 files
1 parent 5d5fd56 commit d71172a

File tree

8 files changed

+6678
-6667
lines changed

8 files changed

+6678
-6667
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ not overloaded, but rather will only accept `String` values while in `entry.id`
146146
```Java
147147
class Demo {
148148
public static void main(String[] args) {
149-
String id = "AF-Q76EI6-F1-model_v4";
149+
String id = "AF-Q76EI6-F1-model_v6";
150150

151151
CifFile cifFile = CifIO.readFromURL(new URL("https://alphafold.ebi.ac.uk/files/" + id + ".cif"));
152152
MmCifFile mmCifFile = cifFile.as(StandardSchemata.MMCIF);

src/main/java/org/rcsb/cif/Demo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private static void buildModel() throws IOException {
120120
}
121121

122122
private static void convertAlphaFold() throws IOException {
123-
String id = "AF-Q76EI6-F1-model_v4";
123+
String id = "AF-Q76EI6-F1-model_v6";
124124

125125
CifFile cifFile = CifIO.readFromURL(new URL("https://alphafold.ebi.ac.uk/files/" + id + ".cif"));
126126
MmCifFile mmCifFile = cifFile.as(StandardSchemata.MMCIF);

src/test/java/org/rcsb/cif/ReaderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void shouldHonorFileFormatAndFailWhenMismatching2() throws ParsingException {
104104

105105
@Test
106106
void whenReadingAlphaFoldText_thenConfidenceScoresAvailable() throws IOException {
107-
String id = "AF-Q76EI6-F1-model_v4";
107+
String id = "AF-Q76EI6-F1-model_v6";
108108
InputStream inputStream = TestHelper.getInputStream("cif/" + id + ".cif");
109109
MmCifFile cifFile = CifIO.readFromInputStream(inputStream).as(StandardSchemata.MMCIF);
110110

@@ -119,11 +119,11 @@ void whenReadingAlphaFoldText_thenConfidenceScoresAvailable() throws IOException
119119

120120
@Test
121121
void whenReadingStringWithEmptyQuotation_thenValueAvailable() throws IOException {
122-
String id = "AF-O49373-F1-model_v4";
122+
String id = "AF-O49373-F1-model_v4"; // this is a quirk in the v4 files only
123123
InputStream inputStream = TestHelper.getInputStream("cif/" + id + ".cif");
124124
MmCifFile cifFile = CifIO.readFromInputStream(inputStream).as(StandardSchemata.MMCIF);
125125

126-
String gene = cifFile.getFirstBlock().getCategory("ma_target_ref_db_details").getColumn("gene_name").getStringData(0);
126+
String gene = cifFile.getFirstBlock().getMaTargetRefDbDetails().getGeneName().get(0);
127127
assertEquals("''cytochrome P450", gene, "Gene name with additional quotes not parsed correctly");
128128
}
129129

src/test/java/org/rcsb/cif/WriterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void whenReading5E_thenNotTreatedAsScientificNumber() throws IOException {
254254
@Test
255255
void whenReadingChecksum_thenNotTreatedAsInt() throws IOException {
256256
// might treat the CRC64 in `_ma_target_ref_db_details.seq_db_sequence_checksum 0197355516942160` as int
257-
MmCifFile cifFile = CifIO.readFromInputStream(TestHelper.getInputStream("cif/AF-P41068-F1-model_v4.cif"))
257+
MmCifFile cifFile = CifIO.readFromInputStream(TestHelper.getInputStream("cif/AF-P41068-F1-model_v6.cif"))
258258
.as(StandardSchemata.MMCIF);
259259
assertEquals("0197355516942160", cifFile.getFirstBlock().getMaTargetRefDbDetails().getSeqDbSequenceChecksum().get(0));
260260
assertNotNull(CifIO.writeBinary(cifFile));

0 commit comments

Comments
 (0)