Bio.Fasta.RecordParser
From Biocourse
Bio.Fasta.RecordParser
1. 종류
- class
2. 설명
- Fasta 형식 파일 내의 Record를 Bio.Fasta.Record 클래스 형태로 만들어 준다.
- Bio.Fasta.Record 의 Attribute 를 통해 Record 의 내용을 확인할 수 있다.
- Fasta 형식의 자료를 프로그램 상에서 편리하게 접근할 수 있도록 해주는 것이 주 기능이라고 할 수 있다.
3. Initialize
- __init__(self, debug = 0)
- debug
: 인스턴스 생성 시 debug 값은 보통 따로 설정하지 않는다.
4. Attribute
5. Method
- parse(self, handle)
- handle
: 파일 handle 을 지정한다. 예) fileobj = open("seq.fasta", 'r') 후 RecordParser.parser(fileobj)
- parse_str(self, str)
- str
: Fasta 포멧 형식의 string 타입의 값을 지정한다. 파일의 handle 뿐만 아니라 string 타입도 Bio.Fasta.Record 타입으로 만들어 줄 수 있다는 것이다.
