MartinKahabka / ClIntKahabka

The fork of the ClInt Project to adjust the pipeline for only RNA seq and later analysis of the promoter regions
0 stars 0 forks source link

Error in refact_fast algorithm #64

Closed MartinKahabka closed 1 month ago

MartinKahabka commented 2 months ago

Error in refact_fast algorithm, file variantPromoterRegion_refact.py

Error: Traceback (most recent call last): File "/nfs/geo/itg/kahabka/ClIntKahabka/promoter/variantPromoterRegion_refact.py", line 275, in fastAnalyis_refac(input_file, filtered_vcf_file, promoter_sum_file, promoter, start_prom, end_prom) File "/nfs/geo/itg/kahabka/ClIntKahabka/promoter/variantPromoterRegion_refact.py", line 153, in fastAnalyis_refac line = input_file.getLine(index) File "/nfs/geo/itg/kahabka/ClIntKahabka/promoter/variantPromoterRegion_refact.py", line 36, in getLine while self.file.read(1) != "\n" and start_offset < byte: File "/usr/lib/python3.10/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte

MartinKahabka commented 2 months ago

error can be fixed by using open(..., errors = 'ignore')