|
|
@@ -562,8 +562,8 @@ pub enum Format {
|
|
|
|
|
|
// Clairs
|
|
|
// when format begins with N: normal
|
|
|
- AF(f32),
|
|
|
- NAF(f32), // DP(u32),
|
|
|
+ // AF(f32),
|
|
|
+ // NAF(f32), // DP(u32),
|
|
|
NDP(u32),
|
|
|
NAD(Vec<u32>),
|
|
|
AU(u32),
|
|
|
@@ -631,8 +631,8 @@ impl TryFrom<(&str, &str)> for Format {
|
|
|
"DP" => Format::DP(parse_value(value, key)?),
|
|
|
"AD" => Format::AD(parse_vec_value(value, key)?),
|
|
|
"VAF" => Format::VAF(parse_value(value, key)?),
|
|
|
- "AF" => Format::AF(parse_value(value, key)?),
|
|
|
- "NAF" => Format::NAF(parse_value(value, key)?),
|
|
|
+ // "AF" => Format::AF(parse_value(value, key)?),
|
|
|
+ // "NAF" => Format::NAF(parse_value(value, key)?),
|
|
|
"NDP" => Format::NDP(parse_value(value, key)?),
|
|
|
"NAD" => Format::NAD(parse_vec_value(value, key)?),
|
|
|
"AU" => Format::AU(parse_value(value, key)?),
|
|
|
@@ -696,8 +696,8 @@ impl From<Format> for (String, String) {
|
|
|
Format::VAF(value) => ("VAF".to_string(), value.to_string()),
|
|
|
Format::PL(values) => ("PL".to_string(), concat(values)),
|
|
|
Format::Other((key, value)) => (key, value),
|
|
|
- Format::AF(value) => ("AF".to_string(), value.to_string()),
|
|
|
- Format::NAF(value) => ("NAF".to_string(), value.to_string()),
|
|
|
+ // Format::AF(value) => ("AF".to_string(), value.to_string()),
|
|
|
+ // Format::NAF(value) => ("NAF".to_string(), value.to_string()),
|
|
|
Format::NDP(value) => ("NDP".to_string(), value.to_string()),
|
|
|
Format::NAD(values) => ("NAD".to_string(), concat(values)),
|
|
|
Format::AU(value) => ("AU".to_string(), value.to_string()),
|
|
|
@@ -722,7 +722,8 @@ impl Formats {
|
|
|
.into_iter()
|
|
|
.map(|e| {
|
|
|
if let Format::VAF(v) = e {
|
|
|
- Format::AF(v)
|
|
|
+ e
|
|
|
+ // Format::AF(v)
|
|
|
} else {
|
|
|
e
|
|
|
}
|
|
|
@@ -730,7 +731,7 @@ impl Formats {
|
|
|
.filter(|format| {
|
|
|
matches!(
|
|
|
format,
|
|
|
- Format::GT(_) | Format::GQ(_) | Format::DP(_) | Format::AD(_) | Format::AF(_)
|
|
|
+ Format::GT(_) | Format::GQ(_) | Format::DP(_) | Format::AD(_) /* | Format::AF(_) */
|
|
|
)
|
|
|
})
|
|
|
.collect();
|