Does anyone know how to enable the REFS_OK flag in numpy? I can't seem to find a clear explanation on the Internet.
My code is:
import sys import string import numpy as np import pandas as pd SNP_df = pd.read_csv('SNPs.txt',sep='\t',index_col = None ,header = None,nrows = 101) output = open('100 SNPs.fa','a') for i in SNP_df: data = SNP_df[i] data = np.array(data) for j in np.nditer(data): if j == 0: output.write(("\n>%s\n")%(str(data(j)))) else: output.write(data(j))
I keep getting an error: the Iterator operand or the requested dtype contains references, but REFS_OK was not included.
I cannot decide how to enable the REFS_OK flag so that the program can continue ...
source share