필터 지우기
필터 지우기

Error following matlab's working with genomes

조회 수: 2 (최근 30일)
Guy Nir
Guy Nir 2020년 9월 12일
답변: Guy Nir 2020년 9월 13일
I tried following matlab's exapmle of how to memmorry map a genome file ( https://www.mathworks.com/help/bioinfo/examples/working-with-whole-genome-data.html ), but am getting the foollowing error -
Array indices must be positive integers or logical values.
Error in nt2int (line 92)
seq = map((uint8(nt) + 1) - uint8('a'));
I am using 'hg38.fa' from the UCSC genome browser.
Thank you,
Guy
  댓글 수: 6
Walter Roberson
Walter Roberson 2020년 9월 12일
Unfortunately that is timing out for me today.
Guy Nir
Guy Nir 2020년 9월 12일
Thank you for trying

댓글을 달려면 로그인하십시오.

채택된 답변

Guy Nir
Guy Nir 2020년 9월 13일
I added a command to remove any character which is not a letter:
% Remove numbers
numIdx=find(~isletter(charData));
charData(numIdx)='';
% Convert to integers
intData = nt2int(charData);
I think Matlab should consider adjusting some of their functions to whole-genome files (instead of whole chromosmes). Other algorithms use these numbers within the FASTA file for info about these sequences.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Genomics and Next Generation Sequencing에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by