본문 바로가기
반응형

분류 전체245

[파이썬] 파이썬 에러 IndentationError: expected an indented block 안녕하세요 한주현입니다. 오늘은 파이썬 스크립트 작성 시 자주 보게되는 오류 중 하나인, IndentationError: expected an indented block 에 대하여 알아보겠습니다. 문제 상황 IndentationError: expected an indented block 기분 좋게 스크립트를 아래와 같이 작성한 다음 실행을 시켰더니.. 1234def hello():print("Hello World!") hello()cs 아래와 같이 오류가 났습니다.. ㅠㅠ 12345$ python helloworld.py File "helloworld.py", line 2 print("Hello world") ^IndentationError: expected an indented blockcs 무슨 일일.. 2017. 11. 1.
[파이썬] 파이썬 에러 IndexError: list index out of range 안녕하세요 한주현입니다. 오늘은 파이썬 스크립트 작성 시 자주 보게되는 오류 중 하나인, IndexError: list index out of range 에 대하여 알아보겠습니다. 문제 상황 IndexError: list index out of range 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >>> lst = [1,2,3] >>> lst [1, 2, 3] >>> lst[0] 1 >>> lst[1] 2 >>> lst[2] 3 >>> lst[3] Traceback (most recent call last): File "", line 1, in IndexError: list index out of range >>> Colored by Color Scripter cs 파이썬 뿐만 아니.. 2017. 11. 1.
[SnpEff] SnpEff 사용방법2 VCF annotation, SnpEff ANN field, Sequence Ontology term 설명 안녕하세요 한주현 입니다. 오늘은 SnpEff 로 VCF annotation하는 간단한 명령어와 annotation된 VCF의 컬럼에서 ANN field 중 annotation, Annotation_Impact 컬럼에 대해 알아보겠습니다. SnpEff 설치 방법에 대해 찾으신다면 다음 링크를 참고해주세요http://korbillgates.tistory.com/61 SnpEff 사용방법1 - 다운로드 및 설치, vcf annotation 위의 링크에서도 알아봤듯이 VCF annotation 하는 명령어를 간단히 리뷰해보도록 하겠습니다. SnpEff로 VCF annotation 하는 방법 java -jar snpEff.jar hg19 in.vcf > out.vcf java 1.7이상 에서 작동하며 라인이 많.. 2017. 10. 31.
[바이오파이썬] 4.2 Sequence Record 객체 - FASTA, GenBank 파일로 부터 생성하기 안녕하세요 한주현입니다. 오늘은 FASTA, GenBank 파일로 부터 SeqRecord 객체를 만드는 방법에 대해 알아보겠습니다. 바로 이전 포스팅에서 SeqRecord 객체에 대해서 알아보았는데요, http://korbillgates.tistory.com/86 SeqRecord 객체는 서열과 annotation 정보 등등을 포함한 객체입니다. 이전 시간에는 아래와 같이 직접 타이핑을 하여 SeqRecord 객체를 만들었는데요, 1 2 3 4 5 6 from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord simple_seq = Seq("GATC") simple_seq_r = SeqRecord(simple_seq) print(simple_seq_r) c.. 2017. 10. 30.
반응형