Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# Bio.SeqIO.QualityIO.solexa_quality_from_phred

All Samples(14)  |  Call(10)  |  Derive(0)  |  Import(4)

```    """
#Map unexpected chars to null
from Bio.SeqIO.QualityIO import solexa_quality_from_phred
trunc_char = chr(1)
mapping = "".join([chr(0) for ascii in range(0, 33)]
+ [chr(64 + int(round(solexa_quality_from_phred(q))))
```
```    """
#Map unexpected chars to null
from Bio.SeqIO.QualityIO import solexa_quality_from_phred
trunc_char = chr(1)
mapping = "".join([chr(0) for ascii in range(0, 64)]
+ [chr(64 + int(round(solexa_quality_from_phred(q))))
```

```    """
#Map unexpected chars to null
from Bio.SeqIO.QualityIO import solexa_quality_from_phred
trunc_char = chr(1)
mapping = "".join([chr(0) for ascii in range(0, 33)]
+ [chr(64 + int(round(solexa_quality_from_phred(q))))
```
```    """
#Map unexpected chars to null
from Bio.SeqIO.QualityIO import solexa_quality_from_phred
trunc_char = chr(1)
mapping = "".join([chr(0) for ascii in range(0, 64)]
+ [chr(64 + int(round(solexa_quality_from_phred(q))))
```

```        #Mapping from Solexa to PHRED is lossy, but so is PHRED to Solexa.
#Assume "old" is the original, and "new" has been converted.
converted = [round(QualityIO.solexa_quality_from_phred(q))
for q in old.letter_annotations["phred_quality"]]
if truncate:
```
```        seq = "N"*94
qual = "".join(chr(33+q) for q in range(0, 94))
expected_sol = [min(62, int(round(QualityIO.solexa_quality_from_phred(q))))
for q in range(0, 94)]
in_handle = StringIO("@Test\n%s\n+\n%s" % (seq, qual))
```

```        #Mapping from Solexa to PHRED is lossy, but so is PHRED to Solexa.
#Assume "old" is the original, and "new" has been converted.
converted = [round(QualityIO.solexa_quality_from_phred(q))
for q in old.letter_annotations["phred_quality"]]
if truncate:
```
```        seq = "N"*94
qual = "".join(chr(33+q) for q in range(0, 94))
expected_sol = [min(62, int(round(QualityIO.solexa_quality_from_phred(q))))
for q in range(0, 94)]
in_handle = StringIO("@Test\n%s\n+\n%s" % (seq, qual))
```

```        #Mapping from Solexa to PHRED is lossy, but so is PHRED to Solexa.
#Assume "old" is the original, and "new" has been converted.
converted = [round(QualityIO.solexa_quality_from_phred(q))
for q in old.letter_annotations["phred_quality"]]
if truncate:
```

```        #Mapping from Solexa to PHRED is lossy, but so is PHRED to Solexa.