NEW YORK (AP) -- Cold weather pushed natural gas prices sharply higher this week and analysts say the gains could continue.

On Friday natural gas futures ended slightly lower. The actively traded January contract edged down $0.02, or 0.4%, to $4.12 per 1,000 cubic feet. It's still up 4% this week and hit a six-month high the day before.

Natural gas jumped Thursday after the Energy Department reported a sharp decrease in natural gas supplies due to the cold weather. Half of all homes in the U.S. use natural gas as a heating source, making it by far the most popular source of heat in the country.

Natural gas in storage fell by 162 billion cubic feet last week, compared with analysts' expectations for a decline of 143 billion cubic feet.

Analysts at Barclays Capital said the cold is affecting natural gas prices two ways. Consumption is higher because more Americans are using more to heat their homes. Very low temperatures in Texas could also impact the production of natural gas there.

Heating oil, which is used primarily in the Northeast, rose 1% this week. On Friday, heating oil rose less than a cent to $3.057 a gallon. Wholesale gasoline rose $0.01 to $2.727 a gallon.

Crude oil rose $0.27, or 0.3%, to $97.65 a barrel.

In agricultural commodities, wheat for March delivery fell $0.01, or 0.2%, to $6.51 a bushel. January soybeans fell 2.5 cents, or 0.2%, to $13.255 a bushel and March corn rose less than a cent to $4.343 a bushel.

In metals, February gold fell $2.90, or 0.2%, to $1,229 an ounce and March silver fell $0.05, or 0.2%, to $19.52 an ounce.

High-grade copper for March delivery rose $0.02, or 0.6%, to $3.249 a pound. January platinum fell $7.20, or 0.5%, to $1,356.30 an ounce and palladium for March delivery fell $0.70, or 0.1%, to $736.15 an ounce.