pgb_liv\php_ms\Writer\MgfWriter::__construct
Creates a new instance of an MGF file writer.
A close() should be called once all entries have been written.
Signature
public function __construct(string
$path,
[string
$searchType = 'MIS',
[string
$massType = 'Monoisotopic']] )
Parameters
$path
— string
The path to the file to save to$searchType
— string
The type of search (Default: MIS)$massType
— string
The mass type (Default: Monoisotopic)
Test Coverage
Information
- Coverage: 4/4 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testObjectCanBeConstructedForValidConstructorArguments
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testCanWriteShortEntry
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testCanWriteLongEntry
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testCanDestruct