본문 바로가기

error11

[tensorflow 설정] get_config error 해결 에러발생시 ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (c:\users\user\appdata\local\programs\python\python38\lib\site-packages\tensorflow\python\eager\context.py) 위 에러의 경우 keras가 버전이 높아지면서 tensorflow와 합쳐져서 생기는 에러임.. 그렇기 때문에 keras를 낮춰주면됨. 혹은 tensorflow로 keras를 import 시키던지 해결방법은 다음과 같음. (아마 위에 있는 방법이 원하던 해결 방법일듯 함) pip install keras==2.3.1 or from tensorflow impo.. 2022. 3. 10.
[유전체] samtools 오류 해결! SEQ and QUAL are of different length samtools를 이용하여 bam 파일을 만들다 보면은 가끔 다음과 같은 에러가 발생할 수가 있습니다. # 실행 명령어 samtools view -Sb input.sam > output.bam # 뜨는 에러 [E::sam_parse1] SEQ and QUAL are of different length [W::sam_read1] Parse error at line 5387631 [main_samview] truncated file. 이럴때는 fastq에서 sam파일을 다시 돌려보시면 해결이 됩니다. 가끔 bwa를 돌릴 때 결과가 다 안 나오는 경우가 있습니다. (서버가 바쁘거나 혹은 가끔 이런일이 발생함) 2021. 8. 24.
[유전체]samtools sort 에러 발생시 해결 bowtie2 이용해서 분석하는 도중에 samtools로 sort를 진행을 하면 가끔 다음과 같은 오류가 발생할 경우가 있습니다. [E::bgzf_read] Read block operation failed with error 2 after 0 of 4 bytes samtools sort: truncated file. Aborting 왜 그럴까 생각하지말고, 처음부터 fastq부터 진행을 해주시면 대부분 해결이 되었습니다. 그리고 bowtie2나 bwa의 경우 대부분 mapping되는 위치가 비슷하기 때문에 bwa도 같이 돌려 보시면서 bam파일의 크기도 체크를 해보시는 것도 방법입니다. 저렇게 에러가 난 경우는 대부분 만들어지다 만 경우가 대부분입니다. 서버에서 여러 tool을 돌릴때 가끔 메모리 부족.. 2021. 8. 17.
[pytorch] RuntimeError : expected scaler type Float but found Double에러 났을 경우 딥러닝을 공부다하가 발생한 오류중에 다음과 같은 오류가 뜬 경우가 있다. RuntimeError : expected scaler type Float but found Double 위와 같은 에러가 뜬 경우는 데이터 값들이 Float가 아니기 때문이다. x, y값에 대해 (혹은 전체 데이터에 대해) .float()라는 function을 추가해줘서 float로 변경후에 진행하게되면 에러가 해결된다. 2021. 6. 15.
[R error] the given url does not appear to be a valid cran repository R studio에서 package download하는 곳을 변경하는데 아래와 같이 에러가 발생한다면, 'the given url does not appear to be a valid cran repository' 해결할 수 있는 방법은 다음과 같습니다. getOption("download.file.method") getOption("download.file.extra") 위와같이 ternimal에 쳤을때, 둘 다 NULL이 나온 경우 options( download.file.method = "curl", download.file.extra = "-L -f" # follow redirects; fail on error ) 위와 같이 쳐주면 됩니다. 2021. 5. 13.