Mean score value by ID over a defined genomic region


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mean score value by ID over a defined genomic region
# 8  
Old 09-15-2015
Sounds like there is a DOS line separator (^M or 0X0D or <CR>) in your first file. Try to remove and run again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Average score

awk '{if(len==0){last=$4;total=$6;len=1;getline}if($4!=last){printf("%s\t%f\n", last, total/len);last=$4;total=$6;len=1}else{total+=$6;len+=1}}END{printf("%s\t%f\n", last, total/len)}' exon.txt > output.txt In the attached file I am just trying to group all the same names in column $4 and then... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Split a file in more files based on score content

Dear All, I have the following file tabulated: ID distanceTSS score 8434 571269 10 10122 393912 9 7652 6 10 4863 1451 9 8419 39 2 9363 564 21 9333 7714 22 9638 8334 9 1638 1231 11 10701 918 1000 6587 32056 111 What I would like to do is the following, create 100 new files based... (5 Replies)
Discussion started by: paolo.kunder
5 Replies

3. AIX

Change lv REGION in HDISK1

Dears my rootvg is missed up i can not extend the /opt as soon as i try to extend the Filesystem its give me that there is not enough space . as there any way to change the REGION of the LVs in HDISK1 ? lspv -p hdisk0 hdisk0: PP RANGE STATE REGION LV NAME TYPE ... (8 Replies)
Discussion started by: thecobra151
8 Replies

4. UNIX for Dummies Questions & Answers

overlapped genomic coordinates

Hi, I would like to know how can I get the ID of a feature if its genomic coordinates overlap the coordinates of another file. Example: Get the 4th column (ID) of this file1: chr1 10 100 gene1 chr2 3000 5000 gene2 chr3 200 1500 gene3 if it overlaps with a feature in this file2: chr2... (1 Reply)
Discussion started by: fadista
1 Replies

5. Shell Programming and Scripting

Region between lines

How can I find the regions between specific lines? I have a file which contains lines like this: chr1 0 17388 0 chr1 17388 17444 1 chr1 17444 17599 2 chr1 17599 17601 1 chr1 17601 569791 0 chr1 569791 569795 1 chr1 569795 569808 2 chr1 569808 569890 3 chr1 569890 570047 4 ... (9 Replies)
Discussion started by: linseyr
9 Replies

6. UNIX for Dummies Questions & Answers

Genomic data processing

Dear fellow members, I've just joined the forum and am a newbie to shell scripting and programming. I'm stuck on the following problem. I'm working with large scale genomic data and need to do some analyses on it. Essentially it is text processing problem, so please don't mind the scientific... (0 Replies)
Discussion started by: mvaishnav
0 Replies

7. Shell Programming and Scripting

Grade Score Script Project

What I thought would be an extremely simple project has proven more difficult for me than I thought. Here are the parameters: Thus far, I've been able to sort the final grades, but I'm having a lot of trouble with appending the correlating letter grade to the end of each line. Any help would be... (3 Replies)
Discussion started by: lazypeterson
3 Replies

8. Shell Programming and Scripting

remove lines based on score criteria

Hi guys, Please guide for Solution. PART-I INPUT FILE (has 2 columns ID and score) TC5584_1 93.9 DV161411_2 79.5 BP132435_5 46.8 EB682112_1 34.7 BP132435_4 29.5 TC13860_2 10.1 OUTPUT FILE (It shudn't contain the line ' BP132435_4 29.5 ' as BP132435 is repeated... (2 Replies)
Discussion started by: smriti_shridhar
2 Replies

9. Post Here to Contact Site Administrators and Moderators

I cant updated the score on space invaders

Hello The same thing happen to me yesterday I canīt record my score on invaders game. (0 Replies)
Discussion started by: lo-lp-kl
0 Replies

10. UNIX for Advanced & Expert Users

stack region

how can i determine that what percentage of stack region is currently is used? (i am using tru64 unix) (2 Replies)
Discussion started by: yakari
2 Replies
Login or Register to Ask a Question
XPolygonRegion()														  XPolygonRegion()

Name
  XPolygonRegion - generate a region from points in a polygon.

Synopsis
  Region XPolygonRegion(points, n, fill_rule)
	XPoint points[];
	int n;
	int fill_rule;

Arguments
  points    Specifies a pointer to an array of points.

  n	    Specifies the number of points in the polygon.

  fill_rule Specifies  whether	areas overlapping an odd number of times should be part of the region (WindingRule) or not part of the region
	    (EvenOddRule).  See Volume One, Chapter 5, The Graphics Context, for a description of the fill rule.

Returns
  The created region.

Description
  XPolygonRegion() creates a region defined by connecting the specified points, and returns a pointer to be used to refer to the region.

  Regions are located relative to a point (the region origin) which is common to all regions.  In XPolygonRegion(), the coordinates specified
  in points are relative to the region origin.	By specifying all points relative to the drawable in which they will be used, the region ori-
  gin can be coincident with the drawable origin.  It is up to the application whether to interpret the location of the region relative to  a
  drawable or not.

  If  the  region  is to be used as a clip_mask by calling XSetRegion(), the upper-left corner of the region relative to the drawable used in
  the graphics request will be at (xoffset + clip_x_origin, yoffset + clip_y_origin), where xoffset and yoffset are the offset of the  region
  (if  any)  and  clip_x_origin  and clip_y_origin are elements of the GC used in the graphics request.  The fill_rule can be either of these
  values:

  EvenOddRule	 Areas overlapping an odd number of times are not part of the region.

  WindingRule	 Overlapping areas are always filled.

  For more information on structures, see Volume One, Chapter 6, Drawing Graphics and Text.

Structures
  Region is a pointer to an opaque structure type.

See Also
  XClipBox(), XCreateRegion(),	XDestroyRegion(),  XEmptyRegion(),  XEqualRegion(),  XIntersectRegion(),  XOffsetRegion(),  XPointInRegion(),
  XRectInRegion(), XSetRegion(), XShrinkRegion(), XSubtractRegion(), XUnionRectWithRegion(), XUnionRegion(), XXorRegion().

Xlib - Regions															  XPolygonRegion()