<commit_before># mspire-mascot-dat

Yet another reader of the mascot search engine .dat results file but that
offers better compatibility with the mspire library.  Consult the 'Mascot
Installation & Setup Manual' for detailed information about the .dat format
itself.

## Examples

[coming]

## Copyright

MIT.  See LICENSE.txt<commit_msg>updated examples<commit_after># mspire-mascot-dat

Reads the mascot search engine .dat results file.

## Examples

```ruby
require 'mspire-mascot-dat'

Mspire::Mascot::Dat.open(file.dat) do |dat|
  dat.sections  # => [:parameters, :masses, :unimod, :enzyme ...]
end

```
### each peptide

#### every peptide hit

```ruby
dat.each_peptide do |pephit|
  pephit.missed_cleavages # => an Integer
  pephit.ions_score # => a Float
  ...
end
```

#### every decoy peptide hit

```ruby
dat.each_peptide(false) {|pephit| ... }
```

#### each top peptide hit

```ruby
dat.each_peptide(true, 1) {|pephit| ... }
```

## Further Info

See Mascot's Installation & Setup Manual' for detailed information about the
.dat format itself.

## Copyright

MIT.  See LICENSE.txt
{'fraction_non_alphanumeric': 0.13345521023765997, 'fraction_numerical': 0.0009140767824497258, 'mean_word_length': 4.165094339622642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4950082', 'n_tokens_mistral': 403, 'n_tokens_neox': 367, 'n_words': 115}