Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Can we assume, the width always the same - 15000? If, yes, then we don't need the window file at all. We can do something like this: awk '{print $0, int($3 / 15000 + 1)}' snp_data and get the right result. Commented Nov 26, 2017 at 0:19
  • I originally misinterpreted your question. I just updated my solution and also rewrote the question to make it clearer and address some ambiguities. Please double-check the question statement to make sure that I haven't misinterpreted anything. Commented Nov 26, 2017 at 2:23
  • @Anna1364 I updated the solution to remove the double quotes. Commented Nov 26, 2017 at 4:10
  • @Anna1364 is the "position" in snp_data actually two numbers "912 1" for initial rows, and only 1 number for the last rows? Commented Nov 28, 2017 at 11:18